Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
int a = 0;
if(N==0){
cout<<0;
}
for (int i = 1; i <= sqrt(N); i++)
{
if (N % i == 0)
{
a+=(i==N/i) ? 1 : 2;
}
}
cout<<a;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1037 Generous CR
- Contest
- Brain booster #2
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-03-06 15:29:52
- Judged At
- 2024-11-11 03:41:38
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 324.0 KiB