4 solutions

  • 1
    @ 2026-2-6 8:26:08

    打卡

    • -1
      @ 2026-1-27 19:30:34
      #include <iostream>
      using namespace std;
      int main(){
          int A;
          cin>>A;
          int a=0;
          for(int d=1;d*d<=A;d++){
              if (A%d==0){
                  a++;
              }
          }
          
          cout<<a<<endl;
          return 0;
      }
      
      • -1
        @ 2026-1-25 11:19:22
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int s,n=0;
            cin>>s;
            for(int i=1;i<=s;i++)
                for(int j=i;j<=s;j++)
                    if(i*j==s)
                        n++;
            cout<<n;
        }
        
        • -1
          @ 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
          6
          Tags
          # Submissions
          22
          Accepted
          12
          Uploaded By