Submission #20193

#TimeUsernameProblemLanguageResultExecution timeMemory
20193kipa00팩토리얼 세제곱들의 합 (YDX14_fact)C++98
0 / 1
2 ms0 KiB
#include <cstdio> int main() { int n, k; scanf("%d%d", &n, &k); printf("%c\n", "124141262812165"[((n>=4)?4:n)+k*5-5]); return 0; }

Compilation message (stderr)

fact.cpp: In function 'int main()':
fact.cpp:5:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &n, &k);
                          ^
#Verdict Execution timeMemoryGrader output
Fetching results...