Cod sursa(job #214166)
| Utilizator | Data | 13 octombrie 2008 00:56:41 | |
|---|---|---|---|
| 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*4+5;
g.close();
}