Re: [問題] 我這樣很爛嗎?
第一題:
http://en.wikipedia.org/wiki/12-hour_clock
http://en.wikipedia.org/wiki/24-hour_clock
http://en.wikipedia.org/wiki/12-hour_clock#Confusion_at_noon_and_midnight
標準如下:
24-hr 12-hr
00:00 == 12:00 a.m.
12:00 == 12:00 p.m.
其他用法是各地習慣。
http://ideone.com/HhmWc (O(n) 取 max 是同事教的)
第二題:
http://ideone.com/u7bkx
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 36.224.176.224
※ 編輯: changyuheng 來自: 211.21.127.209 (09/04 17:43)
推
09/05 06:36, , 1F
09/05 06:36, 1F
→
09/05 06:37, , 2F
09/05 06:37, 2F
→
09/05 06:38, , 3F
09/05 06:38, 3F
→
09/05 06:39, , 4F
09/05 06:39, 4F
→
09/05 06:40, , 5F
09/05 06:40, 5F
推
09/05 19:13, , 6F
09/05 19:13, 6F
討論串 (同標題文章)