Cod sursa(job #1512839)

Utilizator OFY4Ahmed Hamza Aydin OFY4 Data 28 octombrie 2015 18:31:01
Problema Factorial Scor 5
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 kb
#include <cstdio>
 
unsigned long long n,s,i;
 
using namespace std;
int main() {
     
    freopen("fact.in", "r", stdin);
    freopen("fact.out", "w", stdout);
     
    scanf("%lld", &n);
     
    while(i<n){
         
        i+=5;
        s+=(n%5);
    }
     
    printf("%lld\n", i);
}