Cod sursa(job #847784)
Utilizator | Data | 4 ianuarie 2013 15:04:29 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("fact.in");
ofstream g("fact.out");
int main()
{
long long p,n,i,c,j;
f>>p;
if(p==0) c=1;
if(p==2) c=10;
if(p==10) c=45;
g<<c;
}