# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
10129 | lavataste | 팩토리얼 세제곱들의 합 (YDX14_fact) | C11 | 0 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
int GetFactorial(int n)
{
int i, Factorial;
Factorial=1;
for(i=1; i<=n; i++) Factorial*=i;
return Factorial;
}
int main()
{
int n;
scanf("%d", &n);
int Factorial=GetFactorial(n);
Factorial=Factorial*Factorial*Factorial;
for(;Factorial%10==0;Factorial/=10)
{
if(Factorial%10==0){}
else printf("%d", Factorial&10);
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |