8636 节气
#include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { string g[N][N] = {}; g[2][4] = "LC"; g[2][19] = "YS"; g[3][5] = "JZ"; g[3][20] = "CF"; g[4][4] = "QM"; g[4][19] = "GY"; g[5][5] = "LX"; g[5][20] = "XM"; g[6][5] = "MZ"; g[6][21] = "XZ"; g[7][6] = "XS"; g[7][22] = "DS"; g[8][7] = "LQ"; g[8][22] = "CS"; g[9][7] = "BL"; g[9][22] = "QF"; g[10][8] = "HL"; g[10][23] = "SJ"; g[11][7] = "LD"; g[11][22] = "XX"; g[12][7] = "DX"; g[12][21] = "DZ"; g[1][5] = "XH"; g[1][20] = "DH"; int n,m; cin >> n >> m; while(g[n][m] == "") { m++; if(m > 30) { n++; m = 1; if(n > 12)n = 1; } } cout << g[n][m]; return 0; }