Cod sursa(job #352673)
| Utilizator | Data | 2 octombrie 2009 23:00:24 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <fstream>
using namespace std;
ifstream in("fact.in");
ofstream out("fact.out");
int main() {
long P;
long long nr;
in>>P;
nr=0;
while(P>0) {
P--;
nr+=5;
if(nr%25==0) P--;
}
out<<nr;
out.close();
return 0;
}
