摘要: 大巧克力问题 题目大意: Mohammad has recently visited Switzerland . As he loves his friends very much, he decided to buy some chocolate for them, but as this fin 阅读全文
posted @ 2015-07-17 21:39 tmj 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 整理花园问题 题目大意: 有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如 阅读全文
posted @ 2015-07-17 16:05 tmj 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 可乐商店问题 题目大意: Once 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 15:34 tmj 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 十进制转换十六进制问题 题目大意: 把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。 要求: Input 每行一个整数x,0<= x <= 2^31。 Input 每行一个整数x,0<= x <= 2^31。 每行一个整数x,0<= x <= 2^31。 每行一个整数x, 阅读全文
posted @ 2015-07-17 11:50 tmj 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 建金字塔问题 题目大意: Vanya got n cubes. He decided to build a pyramid from them. Vanya wants to build the pyramid as follows: the top level of the pyramid mus 阅读全文
posted @ 2015-07-17 11:28 tmj 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 买香蕉问题 题目大意: 士兵想买W个香蕉。买第一个香蕉K美元,第二个2K美元,以此类推,第i 个香蕉iK美元。 现在该士兵有n美元,而他想买W个香蕉,他需要向他的朋友借多少美元? 要求: 输入:第一行输入整数K,n,W(其中1 ≤ K, W ≤ 1000, 0 ≤ n ≤ 109),分别表示第一个香 阅读全文
posted @ 2015-07-17 09:39 tmj 阅读(278) 评论(0) 推荐(0) 编辑