Cod sursa(job #1925823)
Utilizator | Data | 13 martie 2017 19:02:07 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
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");
long long sum[1001],P,S=1,n,s;
const long long N=1<<20;
int main()
{
int i=1;
in>>P;
if(P==0)
out<<1;
else out<<5*P;
return 0;
}