Cod sursa(job #967031)
Utilizator | Data | 26 iunie 2013 22:35:10 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.17 kb |
#include <fstream>
using namespace std;
ifstream i ("fact.in");
ofstream o ("fact.out");
int main(){
int P;
i>>P;
if(P<0) o<<-1;
else o<<5*P;
return 0;
}