Cod sursa(job #2609282)
Utilizator | Data | 2 mai 2020 13:16:41 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | igorj_mentorat1 | Marime | 0.28 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int P;
long long n;
int main()
{
fin>>P;
if(P==0)
{
fout<<1<<endl;
return 0;
}
n=5*P;
fout<<n;
return 0;
}