Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
57688 | AZE98 | 节气 | Python3 | 解答错误 | 30 MS | 3712 KB | 516 | 2024-11-25 10:01:55 |
[year, month, day] = map(int, input().split("*")) date = month + (year - 2020) * 12 + 0.01 * day date_arr = [2.04, 2.19, 3.05, 3.20, 4.04, 4.19, 5.05, 5.20, 6.05, 6.21, 7.06, 7.22, 8.07, 8.22, 9.07, 9.22, 10.08, 10.23, 11.07, 11.22, 12.07, 12.21, 13.05, 13.20] output_arr = ["LC", "YS", "JZ", "CF", "QM", "GY", "LX", "XM", "MZ", "XZ", "XS", "DS", "LQ", "CS", "BL", "QF", "HL", "SJ", "LD", "XX", "DX", "DZ", "XH", "DH"] for i in range(24): if date <= date_arr[i]: print(output_arr[i]) break