/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 412.0 KiB
#2 Accepted 1ms 412.0 KiB

Code

#include <iostream>
using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL); cout.tie(NULL);
	long long n;
    int count=0;

    cin >> n;
    for(int i=1; i<=n; i++){
        if(n % i == 0){
            count++;
        }
    }

    cout << count;
	
	return 0;
}

Information

Submit By
Type
Pretest
Problem
P1037 Generous CR
Language
C++20 (G++ 13.2.0)
Submit At
2024-03-06 14:06:01
Judged At
2024-03-06 14:06:01
Judged By
Score
20
Total Time
1ms
Peak Memory
412.0 KiB