Cod sursa(job #2474613)
| Utilizator | Data | 15 octombrie 2019 16:45:56 | |
|---|---|---|---|
| Problema | Factorial | Scor | 10 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.35 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int n,p,cif0,i;
int main()
{
fin>>p;
if(p==0)
fout<<"1";
else{
while(cif0<p){
i+=5;
cif0++;
if(i==25)
cif0++;
}
fout<<i;
}
return 0;
}
