Cod sursa(job #1040595)
Utilizator | Data | 24 noiembrie 2013 18:12:04 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <iostream>
#include <fstream>
using namespace std;
int x,p;
ifstream fin ("fact.in");
ofstream fout ("fact.out");
int main()
{
fin>>p;
x=5*p-(p/6)*5;
if (p!=0) fout<<x;
else fout<<1;
return 0;
}