#40450: 一樣是給崴崴的//沒很強


yp11251120@yphs.tp.edu.tw (808-43杜波波)

學校 : 臺北市私立延平高級中學
編號 : 237257
來源 : [203.72.178.1]
最後登入時間 :
2024-11-06 17:51:13
c638. 天干地支 -- it's david | From: [203.72.178.1] | 發表日期 : 2024-05-21 17:24

string c[10]={"庚","辛","壬","癸","甲","乙","丙","丁","戊","己"};
string d[12]={"申","酉","戌","亥","子","丑","寅","卯","辰","巳","午","未"};

我先做2個陣列啦,然後再用條件輸出(有更好解請在下面講

接下來條件自己用(簡單啦最後輸出c[條件],d[條件]]

 
ZeroJudge Forum