typedef long long ll;
typedef unsigned long long ull;
const int MAGIC = 131;
long long h[N], base[N];
long long MOD = (long long)1e9 + 7;
inline void Hash(char *s) {
int l = strlen(s);
h[0] = 1;
...
分类:
其他好文 时间:
2015-04-06 20:18:59
阅读次数:
128
http://www.wanga.com/cu.phpThe Customiser incorporates all of the features of Magic Mouse. It also allows you to quickly and permanently customise the...
分类:
其他好文 时间:
2015-04-05 20:08:54
阅读次数:
139
Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these ...
分类:
其他好文 时间:
2015-04-05 06:22:39
阅读次数:
143
微软实习生线上笔试-2015-4-3(1,2题) Magic Box && Professor Q's Software...
分类:
其他好文 时间:
2015-04-04 18:29:54
阅读次数:
149
题目1 : Magic Box时间限制:10000ms单点时限:1000ms内存限制:256MB描述The circus clown Sunny has a magic box. When the circus is performing, Sunny puts some balls into th...
分类:
其他好文 时间:
2015-04-04 18:11:10
阅读次数:
138
1024. Magic Island
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
There are N cities and N-1 roads in Magic-Island. You can go from one city to any other. One road only ...
分类:
其他好文 时间:
2015-03-31 09:03:59
阅读次数:
173
练习3-72原文Exercise 3.72. In a similar way to exercise 3.71 generate a stream of all numbers that can be written as the sum of two squares in three different ways (showing how they can be so written). 代码...
分类:
其他好文 时间:
2015-03-29 12:17:48
阅读次数:
147
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and ...
分类:
其他好文 时间:
2015-03-29 10:39:13
阅读次数:
107
Magic Pen 6
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 1964 Accepted Submission(s): 682
Problem Description
In HIT, many pe...
分类:
其他好文 时间:
2015-03-28 17:24:42
阅读次数:
136
A:magic
总时间限制: 1000ms 内存限制: 131072kB
描述
魔法师Silly Hook正在表演一个神奇的魔术,他变出了他自己的N个分身,并成正N边形分布,他本身处于这个正N边形的中心,正N边形的边长为A。然后,每个分身都会朝顺时针方向下一个分身以一个相同的固定的速度V移动,移动方向会随着下一个分身的位置变化而变化,最终所有分身都将到达正...
分类:
其他好文 时间:
2015-03-19 22:10:55
阅读次数:
150