Submission #10129

#TimeUsernameProblemLanguageResultExecution timeMemory
10129lavataste팩토리얼 세제곱들의 합 (YDX14_fact)C11
0 / 1
0 ms1084 KiB
#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 timeMemoryGrader output
Fetching results...