摘要: As a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and we... 阅读全文
posted @ 2018-04-25 18:31 ~~zcy 阅读(288) 评论(0) 推荐(0) 编辑
摘要: The owls have the following equation:Y = a × x2 + b × xWith a, b, and N given, they decide to put into a set the integer values of Y ... 阅读全文
posted @ 2018-04-24 20:55 ~~zcy 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Every year, an elephant qualifies to the Arab Collegiate Programming Competition. He graduated this year, but that’s irrelephant. What... 阅读全文
posted @ 2018-04-24 19:38 ~~zcy 阅读(166) 评论(0) 推荐(0) 编辑
摘要: There are N kangaroos going out to eat at an Indian restaurant. The ith kangaroo wants to eat exactly xi food. The kangaroos all want ... 阅读全文
posted @ 2018-04-22 16:39 ~~zcy 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Physics cat likes to draw shapes and figure out their area. He starts by drawing a circle. Then inside the circle, he draws the triang... 阅读全文
posted @ 2018-04-22 15:54 ~~zcy 阅读(159) 评论(0) 推荐(0) 编辑
摘要: in a magical forest, there exists N bamboos that don't quite get cut down the way you would expect.Originally, the height of the ith b... 阅读全文
posted @ 2018-04-22 15:50 ~~zcy 阅读(200) 评论(0) 推荐(0) 编辑
摘要: A. Check the stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA has a strin... 阅读全文
posted @ 2018-04-17 20:55 ~~zcy 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 从键盘输入一个长整数(不超过10位),从高位开始逐位分割并输出。Input正整数n,不含前导零。Output分割的整数序列,各整数之间用空格格开。 注意,最后一个数字后面没有空格!Sample Input654321Sample Output6 5 4 3 2 1 这... 阅读全文
posted @ 2018-04-17 19:47 ~~zcy 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1.淘气的蜡笔小鑫 蜡笔小鑫真是又闲又淘气,他看到走廊上的灯都是灭的,就跑过去捣乱。每个灯泡都有自己的开关,用来控制灯的状态(开或者关)。如果灯灭了,按一下开关即开灯,再按一次即关灯。假设走廊里有n个灯泡,蜡笔小鑫就沿着走廊来回走n次。每次都是沿走廊走下去然后再回来,... 阅读全文
posted @ 2018-04-15 20:24 ~~zcy 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Consider a NxM small-letters grid. SVU asked you to check whether this grid is a Cutie Pie or not A grid is a cutie pie if you can fi... 阅读全文
posted @ 2018-04-15 15:25 ~~zcy 阅读(266) 评论(0) 推荐(0) 编辑