# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
4214 | dbfud | 간지(干支) (KOI13_kanji) | C++98 | 0 ms | 0 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 <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
int year = 0 ;
cin >> year ;
int sibgan[10] = { 6,7,8,9,0,1,2,3,4,5} ;
char sibez[12] = {'I','J','K','L','A','B','C','D','E','F','G','H'};
int sibganIndex = year % 10 ;
int sibezIndex = year % 12 ;
cout << sibez[sibezIndex] << sibgan[sibganIndex] ;
system("PAUSE");
return 0;
}