Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: True E... ...
分类:
其他好文 时间:
2017-12-03 12:50:14
阅读次数:
141
【BZOJ1453】[Wc]Dface双面棋盘 Description Input Output Sample Input Sample Output HINT 题解:话说看到题的第一反应其实是LCT。。。还是学学正解的写法吧(虽然复杂度不如LCT)。 我们用线段树维护所有的行,每个叶子节点都代表一 ...
分类:
其他好文 时间:
2017-12-02 17:49:55
阅读次数:
463
A. I_love_%username% time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya adores sport ...
分类:
编程语言 时间:
2017-12-01 13:31:47
阅读次数:
265
1433: [ZJOI2009]假期的宿舍 Description Input Output Sample Input 1 3 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 Sample Output ? ? HINT 对于30% 的数据满足1 ≤ n ≤ 12。对于100% 的数据满 ...
分类:
其他好文 时间:
2017-11-30 23:30:06
阅读次数:
194
1565: [NOI2009]植物大战僵尸 Description Input Output 仅包含一个整数,表示可以获得的最大能源收入。注意,你也可以选择不进行任何攻击,这样能源收入为0。 Sample Input 3 2 10 0 20 0 -10 0 -5 1 0 0 100 1 2 1 10 ...
分类:
其他好文 时间:
2017-11-29 18:31:18
阅读次数:
141
B. XK Segments time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. XK Segments time limit ...
分类:
编程语言 时间:
2017-11-27 18:44:17
阅读次数:
158
Wizard's Tour Description Input Output Sample Input 4 5 1 2 3 2 2 4 3 4 4 1 Sample Output 2 4 1 2 4 3 2 HINT Solution 首先,一个连通块的答案可以是floor(m / 2)。考虑如何构 ...
分类:
其他好文 时间:
2017-11-25 18:27:24
阅读次数:
166
Description: Given a binary array, find the maximum number of consecutive 1s in this array. Example1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The ...
分类:
其他好文 时间:
2017-11-21 20:54:42
阅读次数:
113
给出圆的圆心和半径,以及三角形的三个顶点,问圆同三角形是否相交。相交输出"Yes",否则输出"No"。(三角形的面积大于0)。 Input Output Input示例 Output示例 ...
分类:
其他好文 时间:
2017-11-18 23:45:23
阅读次数:
457
给出三维空间上的四个点(点与点的位置均不相同),判断这4个点是否在同一个平面内(4点共线也算共面)。如果共面,输出"Yes",否则输出"No"。 Input Output Input示例 Output示例 ...
分类:
其他好文 时间:
2017-11-18 23:34:18
阅读次数:
168