1 solutions

  • 0
    @ 2025-11-27 11:54:18

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int b;
        cin>>b;
        int a=0;
        for (int i=1; i*i<=b;i++) {
            if (b%i==0){
                a+=1;
            }
        }
        cout<<a;
    }
    
    • 1

    Information

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