k863.
清朝年號轉換
--
板橋高中教學題
| From: [27.53.168.127] |
發表日期
:
2023-07-03 14:37
利用字典 最後年份的地方要-1
a={'ShunZhi':1644,'KangXi':1662,'YongZheng':1723,'QianLong':1736,'JiaQing':1796,'DaoGuang':1821,'XianFeng':1851,'TongZhi':1862,'GuangXu':1875,'XuanTong':1909} x,y=map(str,input().split()) b=a.get(x) print(b+int(y)-1)