Nu exista pagina, dar poti sa o creezi ...
Cod sursa(job #925853)
Utilizator | Data | 24 martie 2013 19:43:42 | |
---|---|---|---|
Problema | Factorial | Scor | 15 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <fstream>
using namespace std; ifstream f("fact.in"); ofstream g("fact.out");
int main() { unsigned int P,N;
f>>P; N=0;
if (P==0) {g<<1;} else {N=P*5-(P/10)*5;
if (N<=3248) {g<<N;}
else {g<<-1;}; }
}