fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N;
  6. cin >> N;
  7. int m = 0;
  8. for (int i = 1; i <= N; ++i){
  9. if (N % i == 0){
  10. ++m;
  11. }
  12.  
  13. }
  14. cout << m << endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 5320KB
stdin
90
stdout
12