Cod sursa(job #1988254)
Utilizator | Data | 2 iunie 2017 15:53:30 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("fact.in");
ofstream l("fact.out");
int p,i,n,ok;
int main()
{
f>>p;
ok=0;
i=1;
while (ok==0)
{
if(i/5+i/25==p)
{
l<<i;
ok=1;
}
i++;
}
return 0;
}