Friendship
Time Limit: 3 Seconds
Memory Limit: 32768 KB
A friend is like a flower,
a rose to be exact,
Or maybe like a brand new gate
that never comes unlatched.
A friend i...
分类:
其他好文 时间:
2014-08-16 19:52:01
阅读次数:
269
Description
Happy Birthday
Today it's February 13th. It's a very special day: Miguel's birthday! Like every year, he's organised a big celebration for all his friends. He pr...
分类:
移动开发 时间:
2014-08-16 19:51:52
阅读次数:
267
Problem Description
Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the U...
分类:
其他好文 时间:
2014-08-16 16:28:10
阅读次数:
185
The Lamp Game
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Little Tom likes playing games. Recently he is fond of a game called Lamp Game. The game is like this: at first, there are n lamps o...
分类:
其他好文 时间:
2014-08-16 15:10:10
阅读次数:
250
我现在有这样一个需求:在数据中有一个字段的数据形如“0-300”现在需要将数据替换成“0~300”。
解决的sql如下:UPDATE tj_item_result SET reference_range=REPLACE(reference_range,'—','~') WHERE reference_range LIKE '%—%'
执行完之后...
分类:
数据库 时间:
2014-08-16 13:51:50
阅读次数:
236
Description
F- Hats
Background
John Hatman, the honest cloakroom attendant of the RoyalTheatre of London, would like to know the solution to the followingproblem.
TheProble...
分类:
其他好文 时间:
2014-08-15 14:37:28
阅读次数:
208
本文转载自:http://blog.csdn.net/like_zhz/article/details/5441946##########################################################################可移植的DBI方法:connect...
分类:
数据库 时间:
2014-08-15 12:40:28
阅读次数:
225
~~~~
果然用map暴力直接超时。原来要用hash,第一次写hash,真是个好玩的东西。
题目链接:http://poj.org/problem?id=1200
注意:1.题目说文本是由字符组成的,所以要用ascll码作为下标。
2.hash数组要开大点,否则RE。
#include
#include
#include
#include
#include
#define N 1...
分类:
其他好文 时间:
2014-08-15 08:17:47
阅读次数:
233
Description
Many people like to solve hard puzzles some of which may lead them to madness. One such puzzle could be finding a hidden prime number in a given text. Such number could be the number of d...
分类:
其他好文 时间:
2014-08-14 23:55:56
阅读次数:
329
I'd like to get the source code of thechromium 34.0.1847.9.gclient config http://src.chromium.org/chrome/releases/34.0.1847.9gclient sync --jobs 16
分类:
其他好文 时间:
2014-08-14 23:10:38
阅读次数:
205