Cod sursa(job #3158191)
Utilizator | Data | 17 octombrie 2023 22:34:56 | |
---|---|---|---|
Problema | Iepuri | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.39 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream in ("perechi.in");
ofstream out("perechi.out");
int main() {
int n;
in>>n;
int put=1,div=2;
while(div*div<=n){
int pow=0;
while(n%div==0){
pow++;
n/=div;
}
put*=2*pow+1;
div++;
}
if(n>1){
put*=3;
}
out<<put/2+1;
}