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

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