摘要: Ordered FractionsConsider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal to N.Here is the set when N = 5: 0/1 1/5 1/4 1/3 2/5 1/2 3/5 2/3 3/4 4/5 1/1 Write a program that, given an integer N between 1 and 160 inclusive, prints the fractions in order o 阅读全文
posted @ 2012-08-18 20:37 剑不飞 阅读(208) 评论(0) 推荐(0) 编辑
摘要: The CastleIOI'94 - Day 1 In a stroke of luck almost beyond imagination, Farmer John was sent a ticket to the Irish Sweepstakes (really a lottery) for his birthday. This ticket turned out to have only the winning number for the lottery! Farmer John won a fabulous castle in the Irish countryside. 阅读全文
posted @ 2012-08-18 19:46 剑不飞 阅读(184) 评论(0) 推荐(0) 编辑