Cod sursa(job #214167)
| Utilizator | Data | 13 octombrie 2008 01:01:32 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.18 kb |
#include <fstream>
#include <math.h>
using namespace std;
int main() {
ifstream f("fact.in");
ofstream g("fact.out");
long p;
f>>p;
f.close();
g<<(p+p/25)*5;
g.close();
}