Single NumberGiven an array of integers, every
element appearstwiceexcept for one. Find that single one.Note:Your algorithm
should have a linear runti...
分类:
其他好文 时间:
2014-07-22 23:07:14
阅读次数:
337
Problem B: The Largest CliqueGiven a directed
graphG, consider the following transformation. First, create a new graphT(G)to
have the same vertex set ...
分类:
其他好文 时间:
2014-05-01 14:09:34
阅读次数:
357
题目:You have a necklace of N red, white, or blue
beads (3#include #include #define MAXN 400char necklace[MAXN];int len;/* *
Return n mod m. The C % o.....
分类:
其他好文 时间:
2014-05-01 12:04:19
阅读次数:
497
As you must have experienced, instead of
landing immediately, an aircraft sometimes waits in a holding loop close to the
runway. This holding mechanis...
分类:
其他好文 时间:
2014-05-01 03:51:48
阅读次数:
477
Cable master
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 21071
Accepted: 4542
Description
Inhabitants of the Wonderland have decided to hold a regional p...
分类:
其他好文 时间:
2014-04-29 13:44:22
阅读次数:
360
链接:http://soj.me/show_problem.php?pid=1007
Description
Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letter...
分类:
其他好文 时间:
2014-04-29 13:23:21
阅读次数:
293
A Simple Problem with Integers
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 55626
Accepted: 16755
Case Time Limit: 2000MS
Description
You have N...
分类:
其他好文 时间:
2014-04-28 10:23:41
阅读次数:
282
Fruit Ninja IITime Limit: 5000MS Memory limit:
65536K题目描述Have you ever played a popular game named "Fruit Ninja"?Fruit Ninja
(known as Fruit Ninja HD ...
分类:
其他好文 时间:
2014-04-28 05:10:47
阅读次数:
582
Traveling salesmen ofnhn. (the prestigious
Korean internet company) report their current location to the company on a
regular basis. They also have to...
分类:
其他好文 时间:
2014-04-28 01:25:55
阅读次数:
582