摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 int main () 6 { 7 int n,m; 8 while(scanf("%d %d",&m,&n)&&m&&n) 9 {10 in... 阅读全文
posted @ 2014-06-01 20:08 Fighting_frank 阅读(166) 评论(0) 推荐(0) 编辑
摘要: The 3n + 1 problemTime Limit:1000MSMemory Limit:10000KTotal Submissions:50513Accepted:15986DescriptionProblems in Computer Science are often classifie... 阅读全文
posted @ 2014-06-01 18:46 Fighting_frank 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Gold CoinsTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 20802Accepted: 13018DescriptionThe king pays his loyal knight in gold coins. On the... 阅读全文
posted @ 2014-05-31 11:20 Fighting_frank 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Self NumbersTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 20864Accepted: 11709DescriptionIn 1949 the Indian mathematician D.R. Kaprekar dis... 阅读全文
posted @ 2014-05-30 21:09 Fighting_frank 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Ride to SchoolTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 18704Accepted: 7552DescriptionMany graduate students of Peking University are l... 阅读全文
posted @ 2014-05-30 16:29 Fighting_frank 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Speed LimitTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 16884Accepted: 11841DescriptionBill and Ted are taking a road trip. But the odomet... 阅读全文
posted @ 2014-05-30 16:23 Fighting_frank 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 排列Time Limit: 1000MSMemory Limit: 30000KTotal Submissions: 15934Accepted: 6413Description题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列... 阅读全文
posted @ 2014-05-30 15:07 Fighting_frank 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Ugly NumbersTime Limit:1000MSMemory Limit:10000KTotal Submissions:19952Accepted:8856DescriptionUgly numbers are ... 阅读全文
posted @ 2014-05-27 12:36 Fighting_frank 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Vertical HistogramTime Limit:1000MSMemory Limit:65536KTotal Submissions:16999Accepted:8238DescriptionWrite a progra... 阅读全文
posted @ 2014-05-26 23:46 Fighting_frank 阅读(222) 评论(0) 推荐(0) 编辑
摘要: The Circumference of the CircleTime Limit:1000MSMemory Limit:65536KTotal Submissions:7032Accepted:4361DescriptionTo calculat... 阅读全文
posted @ 2014-05-26 20:31 Fighting_frank 阅读(274) 评论(0) 推荐(0) 编辑