Cod sursa(job #3311586)
| Utilizator | Data | 23 septembrie 2025 12:58:14 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
int p,n=0,h=0,m=0;
int main()
{
ifstream f("fact.in");
ofstream g("fact.out");
f>>p;
while(h<p)
{
n+=5;
h++;
if(n==50)
{
m=n;
m=-5;
}
}
g<<n+m;
}
