摘要:
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
心向晴
阅读(241)
评论(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
心向晴
阅读(431)
评论(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
心向晴
阅读(406)
评论(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
心向晴
阅读(242)
评论(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
心向晴
阅读(604)
评论(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
心向晴
阅读(965)
评论(0)
推荐(0)
摘要:
Description把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。Input每行一个整数x,0int main(){ int x; while(scanf("%d",&x)!=EOF) { printf("0x"); printf("%.8X\n",x); } ret... 阅读全文
posted @ 2015-07-17 16:51
心向晴
阅读(333)
评论(0)
推荐(0)
摘要:
Description有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如果这... 阅读全文
posted @ 2015-07-17 16:26
心向晴
阅读(255)
评论(0)
推荐(0)
摘要:
DescriptionVanya gotncubes. He decided to build a pyramid from them. Vanya wants to build the pyramid as follows: the top level of the pyramid must co... 阅读全文
posted @ 2015-07-17 15:59
心向晴
阅读(378)
评论(0)
推荐(0)
摘要:
DescriptionThere is a permutation without two numbers in it, and now you know what numbers the permutation has. Please find the two numbers it lose.In... 阅读全文
posted @ 2015-07-17 15:26
心向晴
阅读(791)
评论(0)
推荐(0)
浙公网安备 33010602011771号