Cod sursa(job #625278)
Utilizator | Data | 24 octombrie 2011 10:31:52 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<fstream>
using namespace std;
int p;
int main(){
int i;
ifstream fin("fact.in");
fin>>p;
fin.close();
ofstrea fout("fact.out");
fout<<(int((float)p/6*5)+1)*5;
fout.close();
return 0;
}