Submission #159709

#TimeUsernameProblemLanguageResultExecution timeMemory
159709geon040702간지(干支) (KOI13_kanji)C++14
14 / 14
2 ms504 KiB
#include <bits/stdc++.h> using namespace std; int ShipGan_List[10] = {6, 7, 8, 9, 0, 1, 2, 3, 4, 5}; char ShipEJi_List[12] = {'I', 'J', 'K', 'L', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'}; int year, a, b, i, j; int main(void) { scanf("%d", &year); a = year % 10; b = year; while(b >= 12) { b %= 12; } printf("%c%d", ShipEJi_List[b], ShipGan_List[a]); return 0; }

Compilation message (stderr)

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