Cod sursa(job #2070564)

Utilizator dey44andIoja Andrei-Iosif dey44and Data 19 noiembrie 2017 18:08:53
Problema Factorial Scor 5
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include <iostream>
#include <fstream>

using namespace std;

ifstream in("fact.in");
ofstream out("fact.out");

long long P, N;

int main()
{
    in >> P;
    if(P==0)
        out << 1;
    else
    {
        N=5+(P-2)*5;
        out << N;
    }
    return 0;
}