摘要:
Description有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如果这... 阅读全文
摘要:
11877 The Coco-ColaStore 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... 阅读全文
摘要:
Description把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。Input每行一个整数x,0int main(){ int n,i=0; while(scanf("%d",&n)!=EOF) { printf("0x"); pri... 阅读全文
摘要:
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... 阅读全文
摘要:
11462 AgeSort 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 country li... 阅读全文
摘要:
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... 阅读全文
摘要:
10763 Foreign ExchangeYour non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a very successful foreign... 阅读全文
摘要:
10935 Throwing cards away I 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 operati... 阅读全文