Cod sursa(job #2010931)
| Utilizator | Data | 14 august 2017 19:03:08 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <iostream>
#include<fstream>
using namespace std;
ifstream in("fact.in");
ofstream out("fact.out");
int main() {
int a,s=0,x=0;
in>>a;
while(s==0){
if((x/25+x/5)==a){s=x;
break;}
x+=5;
}
out<<s;
return 0;
}
