上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 10763 Foreign ExchangeYour non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a very successful foreign... 阅读全文
posted @ 2015-07-22 18:55 心向晴 阅读(256) 评论(0) 推荐(0)
摘要: 10935 Throwing cards awayI Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operatio... 阅读全文
posted @ 2015-07-22 17:14 心向晴 阅读(754) 评论(0) 推荐(0)
摘要: Description费马大定理:当n>2时,不定方程an+bn=cn没有正整数解。比如a3+b3=c3没有正整数解。为了活跃气氛,我们不妨来个搞笑版:把方程改成a3+b3=c3,这样就有解了,比如a=4, b=9, c=79时43+93=793。输入两个整数x, y,求满足x#include us... 阅读全文
posted @ 2015-07-22 16:45 心向晴 阅读(414) 评论(0) 推荐(0)
摘要: Description“订外卖就上XXX,满X减Y,满X减Y...”这样的声音老回荡在我们耳旁。发传单,拉条幅的宣传手段也屡见不鲜。外卖的撕‘哔’大战充满血雨腥风,不过作为消费者,我们的问题是:“已知N种类似满X减Y的优惠,请问你想点M次外卖,最少出多少钱呢?”。(P.S:各优惠不能叠加,外卖不能拼... 阅读全文
posted @ 2015-07-22 16:23 心向晴 阅读(218) 评论(0) 推荐(0)
摘要: DescriptionIn a city there arenbus drivers. Also there arenmorning bus routes &nafternoon bus routes with various lengths. Each driver is assigned one... 阅读全文
posted @ 2015-07-17 21:19 心向晴 阅读(217) 评论(0) 推荐(0)
摘要: DescriptionMohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine ch... 阅读全文
posted @ 2015-07-17 20:30 心向晴 阅读(410) 评论(0) 推荐(0)
摘要: DescriptionAge Sort:You are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that coun... 阅读全文
posted @ 2015-07-17 20:04 心向晴 阅读(398) 评论(0) 推荐(0)
摘要: DescriptionA soldier wants to buywbananas in the shop. He has to paykdollars for the first banana,2kdollars for the second one and so on (in other wor... 阅读全文
posted @ 2015-07-17 19:33 心向晴 阅读(228) 评论(0) 推荐(0)
摘要: Description从m个不同元素中取出n(n≤m)个元素的所有组合的个数,叫做从m个不同元素中取出n个元素的组合数。组合数的计算公式如下:C(m,n) =m!/((m-n)!n!)现在请问,如果将组合数C(m,n)写成二进制数,请问转这个二进制数末尾有多少个零。Input第一行是测试样例的个数T... 阅读全文
posted @ 2015-07-17 18:50 心向晴 阅读(594) 评论(0) 推荐(0)
摘要: DescriptionOnce upon a time, there is a special coco-cola store. If you return three empty bottles to the shop, you’ll get a full bottle of coco-cola ... 阅读全文
posted @ 2015-07-17 17:16 心向晴 阅读(942) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页