Cod sursa(job #2454206)
Utilizator | Data | 7 septembrie 2019 17:51:43 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <fstream>
using namespace std;
ifstream f("fact.in");
ofstream g("fact.out");
int main(){
int p;
long long x;
f >> p;
if( p == 0)
g << 1;
else{
x = 5*p;
g << x;
}
}