Impossible Game题目描述你发明了一个简单的单人电脑游戏。在开始游戏时,玩家必须输入一个长度为 K 的字符串,且这个字符串的元素只能为‘A’‘B’‘C’或者‘D’。每一种字符串都代表一种颜色,不同的字符串可能有相同的颜色,而一种字符串的颜色是由你在游戏开始前决定的。为了赢得这个游戏,玩家...
分类:
其他好文 时间:
2014-08-11 17:02:52
阅读次数:
271
HDU 4143 A Simple Problem(数论-水题)
题目大意:
给定n,求最小的正整数x,使得 n+x^2也是完全平方数。
解题思路:
假设y^2=n+x^2 ,那么 (y-x)*(y+x)=n,也就是n的两个因子,只需枚举因子即可。...
分类:
其他好文 时间:
2014-08-11 15:02:52
阅读次数:
199
给一个长度为n的字符串,每次删除字母相同切连续的串,如果有多个,删除最左边的、最长的串。每次删除输出串的字母,每个字母的下标(1-n)
N (1 ≤ N ≤ 10e6),串只包括red (‘R’), green (‘G’) or blue (‘B’)...
分类:
其他好文 时间:
2014-08-11 12:07:52
阅读次数:
208
City Game
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4572 Accepted Submission(s): 1938
Problem Description
Bob is a strategy...
分类:
其他好文 时间:
2014-08-11 12:05:12
阅读次数:
327
#include#include#includeusing namespace std;#define N 1002int map[N][N];int main(){ int i,j,m,n,Min,area,high,t,k; char c[100]; scanf("%d",&t...
分类:
其他好文 时间:
2014-08-11 10:06:51
阅读次数:
198
Problem Description
Football Manager is a series of football management simulation games developed by Sports Interactive and published by Sega. In this game, you will play a role of a football club m...
分类:
其他好文 时间:
2014-08-11 00:31:01
阅读次数:
400
1078. Hashing (25)
时间限制
100 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
The task of this problem is simple: insert a seq...
分类:
其他好文 时间:
2014-08-11 00:24:21
阅读次数:
206
a simple erlang process pool analysis...
分类:
其他好文 时间:
2014-08-11 00:21:50
阅读次数:
291
#include #include #include #include using namespace std;#define N 100002struct node{ int l,r; long long lz,w;}q[4*N];void pushup(int rt){ q[r...
分类:
其他好文 时间:
2014-08-10 23:57:40
阅读次数:
512
http://poj.org/problem?id=3468真心觉得这题坑死我了,一直错,怎么改也没戏,最后tjj把q[rt].lz改成了long long 就对了,真心坑啊。线段树的区域更新。线段树功能:update:成段增减 query:区间求和#include #include #includ...
分类:
其他好文 时间:
2014-08-10 23:56:10
阅读次数:
291