Cod sursa(job #1071400)
| Utilizator | Data | 2 ianuarie 2014 22:35:26 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f;
ofstream g;
long int n,k,p,i;
main()
{
f.open("fact.in");
g.open("fact.out");
f>>p;
if(p==0)g<<"1";
else g<<5*p-5;
g.close();
}
