Re: [問題] 我這樣很爛嗎?

看板C_and_CPP作者 (張昱珩)時間13年前 (2012/09/03 16:21), 編輯推噓2(204)
留言6則, 2人參與, 最新討論串7/10 (看更多)
第一題: 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
第2題21行要改成if(ma==at_least),否則會連1111都算入.
09/05 06:36, 1F

09/05 06:37, , 2F
若按照01:00~12:59的表示法,答案應該是64個.
09/05 06:37, 2F

09/05 06:38, , 3F
若有說錯請指正,謝謝:)
09/05 06:38, 3F

09/05 06:39, , 4F
阿阿阿!我又回去看了一下題目,他說three or "more"
09/05 06:39, 4F

09/05 06:40, , 5F
沒看清楚耍呆了,在此向原PO道歉 >"< 敬請見諒 Orz
09/05 06:40, 5F

09/05 19:13, , 6F
第二題不是說"online嗎!?
09/05 19:13, 6F
文章代碼(AID): #1GHDZoEV (C_and_CPP)
討論串 (同標題文章)
文章代碼(AID): #1GHDZoEV (C_and_CPP)