Big Event in HDU Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57986 Accepted Submission(s): 1 ...
分类:
其他好文 时间:
2019-08-22 22:08:35
阅读次数:
99
hdu1166 敌兵布阵 题意: 读入一个数组,完成单点加,单点减,和区间求和三种操作。 解法: 明摆着的一颗线段树,SB题。 CODE: cpp pragma GCC optimize(2) include include include include using namespace std; ...
分类:
其他好文 时间:
2019-08-22 21:53:16
阅读次数:
68
Given a positive integer N, your task is to calculate the sum of the positive integers less than N which are not coprime to N. A is said to be coprime ...
分类:
其他好文 时间:
2019-08-22 14:45:56
阅读次数:
63
FatMouse's Speed Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24573 Accepted Submission(s): 10 ...
分类:
其他好文 时间:
2019-08-22 13:02:15
阅读次数:
54
Common Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 55301 Accepted Submission(s): ...
分类:
其他好文 时间:
2019-08-22 09:18:39
阅读次数:
81
题目链接 "Make Rounddog Happy" Problem Description Rounddog always has an array a1,a2,?,an in his right pocket, satisfying 1≤ai≤n. A subarray is a non emp ...
分类:
移动开发 时间:
2019-08-22 01:09:31
阅读次数:
107
Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 59516 Accepted S ...
分类:
其他好文 时间:
2019-08-22 01:04:04
阅读次数:
65
首先最容易想到的就是N2暴力枚举所有线段去找最小值,但是这样会做了许多无用功。我们可以先对线段排序,使得线段最左侧的端点按照x轴y轴排序,然后我们可以限定在这个线段的矩形框内的所有线段才有可能产生最小值,每次查询对于第i条线段的最近距离,如果第j条线段的最左侧点的x与第i条线段的最右侧点的x差值大于 ...
分类:
其他好文 时间:
2019-08-21 23:07:33
阅读次数:
126
Block Breaker Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0 Probl ...
分类:
其他好文 时间:
2019-08-21 19:02:06
阅读次数:
108
As we all know, the next Olympic Games will be held in Beijing in 2008. So the year 2008 seems a little special somehow. You are looking forward to it ...
分类:
其他好文 时间:
2019-08-20 23:54:02
阅读次数:
104