Cod sursa(job #1497212)
| Utilizator | Data | 6 octombrie 2015 14:30:33 | |
|---|---|---|---|
| Problema | Factorial | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<fstream>
using namespace std;
unsigned long long p;
int main(){
ifstream fin("fact.in");
ofstream fout("fact.out");
fin>>p;
if(p%6==5) fout<<"-1";
fin.close();
fout.close();
return 0;
}
