1989. Subpalindromes
Time limit: 0.5 second
Memory limit: 64 MB
You have a string and queries of two types:
replace i’th character of the string by character a;check if substring sj...sk i...
分类:
其他好文 时间:
2015-08-08 18:22:03
阅读次数:
160
Light Bulb
Time Limit: 1 Second
Memory Limit: 32768 KB
Compared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb i...
分类:
其他好文 时间:
2015-08-08 12:13:18
阅读次数:
166
G - 取石子游戏
Description
1堆石子有n个,两人轮流取.先取者第1次可以取任意多个,但不能全部取完.以后每次取的石子数不能超过上次取子数的2倍。取完者胜.先取者负输出"Second win".先取者胜输出"First win".
Description
1堆石子有n个,两人轮流取.先取者第1次可以取任意多个,但不能全部取完.以后每次取的石子数不能超过...
分类:
其他好文 时间:
2015-08-08 12:05:31
阅读次数:
106
SafecrackerProblem Description=== Op tech briefing, 2002/11/02 06:42 CST ==="The item is locked in a Klein safe behind a painting in the second-floor ...
分类:
其他好文 时间:
2015-08-07 19:29:24
阅读次数:
116
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater
than 200). The ?rst and the second jug are initially empty, while the third is completely ?lled...
分类:
其他好文 时间:
2015-08-06 09:29:08
阅读次数:
134
1907. Coffee and Buns
Time limit: 1.0 second
Memory limit: 64 MB
Planet Ataraxia is known for its education centers. The people who are expected to take high social positions in future are...
分类:
其他好文 时间:
2015-08-06 00:32:13
阅读次数:
118
package?com.second;
import?java.io.BufferedReader;
import?java.io.IOException;
import?java.io.InputStreamReader;
import?java.net.HttpURLConnection;
import?java.net.URL;
import?java.net.URLE...
分类:
其他好文 时间:
2015-08-05 13:19:39
阅读次数:
418
1102. Strange Dialog
Time Limit: 1.0 second
Memory Limit: 16 MB
One entity named "one" tells with his friend "puton" and their conversation is interesting. "One" can say words "out" and "output...
分类:
编程语言 时间:
2015-08-04 08:14:23
阅读次数:
230
1900. Brainwashing Device
Time limit: 1.0 second
Memory limit: 64 MB
While some people travel in space from planet to planet and discover new worlds, the others who live on Earth still have...
分类:
其他好文 时间:
2015-08-03 19:11:55
阅读次数:
369
在Shell中,调用函数时可以向其传递参数。在函数体内部,通过 $n 的形式来获取参数的值,例如,$1表示第一个参数,$2表示第二个参数...
带参数的函数示例:
#!/bin/bash
funWithParam(){
echo "The value of the first parameter is $1 !"
echo "The value of the second parameter ...
分类:
系统相关 时间:
2015-08-03 14:46:42
阅读次数:
160