摘要:L1-002 打印沙漏 (20 分)本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾...
阅读全文
摘要:Hands that shed innocent blood!There are n guilty people in a line, the i-th of them holds a claw with length Li. The bell rings ...
阅读全文
摘要:Jafar has n cans of cola. Each can is described by two integers: remaining volume of cola ai and can’s capacity bi (ai ≤ bi).Ja...
阅读全文
摘要:Description武器大师有两堆宝贝箱子,每个箱子都有着自己的一个编号。为了输入方便,每堆箱子编号都是连续的。现在他想分别从两堆箱子中各等概率的选择一个箱子,但是只有他选择的两个箱子编号异或(位运算)之后为0,他才能获得奖励。现在他想请你算算每次他能获得...
阅读全文
摘要:Mike and some bears are playing a game just for fun. Mike is the judge. All bears except Mike are standing in an n × m grid, ther...
阅读全文
摘要:Bizon the Champion is called the Champion for a reason.Bizon the Champion has recently got a present — a new glass cupboard with ...
阅读全文
摘要:Two bored soldiers are playing card war. Their card deck consists of exactly n cards, numbered from 1 to n, all values are differ...
阅读全文
摘要:Parsing URLTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 2614 Accept...
阅读全文