1 solutions

  • 0
    @ 2024-12-5 18:19:38

    C++ :

    #include <iostream>
    using namespace std;
    
    int main() {
       int A, count = 0;
       cin >> A;
    
       for (int i = 1; i <= A; ++i) {
          if (A % i == 0 && i <= A / i) {
             ++count;
          }
       }
    
       cout << count << endl;
       return 0;
    }
    
    • 1

    Information

    ID
    9139
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By