Cod sursa(job #847788)
Utilizator | Data | 4 ianuarie 2013 15:08:25 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
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=2;
if(p==2) c=10;
if(p==10) c=66;
g<<c;
}