上一页 1 ··· 4 5 6 7 8
摘要: 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 心向晴 阅读(317) 评论(0) 推荐(0)
摘要: Description有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如果这... 阅读全文
posted @ 2015-07-17 16:26 心向晴 阅读(235) 评论(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 心向晴 阅读(365) 评论(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 心向晴 阅读(772) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8