Cod sursa(job #880820)
Utilizator | Data | 17 februarie 2013 13:30:37 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<stdio.h>
long long int i,n,p,k;
int main(void)
{
freopen("fact.in","r",stdin);
freopen("fact.out","w",stdout);
scanf("%lli",&p);
i=5*p+5;
p=i-5;
if(p>25)
{k=p/25;
i-=k*5;}
printf("%lli",i-5);
return 0;
}