Posted on 2008-01-03 00:52
小夜 閱讀(254)
評論(0) 編輯 收藏 引用 所屬分類:
[05] 算法
/** * 題目:時間表達(dá) * 英語表達(dá)時間有如下6種類型: * It is five past seven.(7點(diǎn)5分) * It is eleven to ten.(9點(diǎn)49分) * It is half past nine.(9點(diǎn)30分) * It is a quarter past eight.(8點(diǎn)15分) * It is a quarter to ten.(9點(diǎn)45分) * It is three o’clock.(3點(diǎn)) * * 輸入: * 輸入時間,格式“A B”,A表示小時(0<=A<13),B表示分鐘(0<=B<60) * * 輸出: * 輸出相應(yīng)的時間表達(dá)字符串,輸入“0 0”時表示輸入已結(jié)束 */

文章來源:
http://blog.csdn.net/volant_hoo/archive/2008/01/02/2010715.aspx