Cod sursa(job #531502)

Utilizator bobomitzRauca Mihai bobomitz Data 9 februarie 2011 20:11:30
Problema Factorial Scor 5
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.38 kb
#include<fstream>
#include<limits.h>
using namespace std;

#define N ULLONG_MAX

int main()
{
    unsigned long long int P, i;
    ifstream fin("fact.in");
    ofstream fout("fact.out");
    fin>>P;
    for(i=5;i<N;i++)
        if( i/5==P)
        {
        fout<<i;
        break;
        }
    fin.close();
    fout.close();
    return 0;
}