Cod sursa(job #1002245)

Utilizator MagnificulTudor Catana Magnificul Data 27 septembrie 2013 09:45:45
Problema Factorial Scor 5
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.27 kb
#include <fstream>

using namespace std;

int main()
{
    ifstream f("fact.in");
    ofstream g("fact.out");
    unsigned long long P,x,N,xanax;
    f>>P;
    xanax=P%6;
    if(xanax!=5)
    {
      N=(P-(P/6))*5;
      g<<N;
    }

    else g<<-1;




}