Cod sursa(job #625280)
Utilizator | Data | 24 octombrie 2011 10:35:07 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
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();
ofstream fout("fact.out");
fout<<(int((float)p/6*5)+1)*5;
fout.close();
return 0;
}