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