摘要: 给定两个正整数,计算这两个数的最小公倍数。 Input 输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数.Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。 Sample Input Sample Output 阅读全文
posted @ 2017-08-14 11:26 听说这是最长的名字了 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s 阅读全文
posted @ 2017-08-13 10:08 听说这是最长的名字了 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Problem Description 急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤粮食呢?后记:人生是一个充满了变 阅读全文
posted @ 2017-08-12 13:07 听说这是最长的名字了 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this actio 阅读全文
posted @ 2017-08-12 11:56 听说这是最长的名字了 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜 阅读全文
posted @ 2017-08-12 10:10 听说这是最长的名字了 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Description Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place 阅读全文
posted @ 2017-08-10 14:29 听说这是最长的名字了 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any number of times. But 阅读全文
posted @ 2017-08-10 11:11 听说这是最长的名字了 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popula 阅读全文
posted @ 2017-08-09 17:06 听说这是最长的名字了 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。 Input每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。 Output对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千 阅读全文
posted @ 2017-08-09 16:29 听说这是最长的名字了 阅读(500) 评论(0) 推荐(0) 编辑
摘要: The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. H 阅读全文
posted @ 2017-08-09 14:31 听说这是最长的名字了 阅读(190) 评论(0) 推荐(0) 编辑