线段树:延伸标记+暴力更新
记得刚学线段树的时候做这题WA了一版。。。。。现在分分钟搞定。。。。
Count the Colors
Time Limit: 2 Seconds Memory Limit: 65536 KB
Painting some colored segments on a line, some previously painted segm...
分类:
其他好文 时间:
2014-07-18 23:07:26
阅读次数:
330
EXPIRE key seconds为给定key设置生存时间,当key过期时(生存时间为0),它会被自动删除。在 Redis 中,带有生存时间的key被称为『易失的』(volatile)。生存时间可以通过使用DEL命令来删除整个key来移除,或者被SET和GETSET命令覆写(overwrite),...
分类:
其他好文 时间:
2014-07-16 12:38:35
阅读次数:
271
接到现场实施的反馈:现在有一系统慢,整个系统卡住了。诊断过程:
1. 检查应用日志,即weblogic日志,发现有堵塞的线程,查到代码是调用的接口
<ExecuteThread: '7' for queue: 'default' has been busy for "994" seconds working on the request "Http Request: /we...
分类:
其他好文 时间:
2014-07-14 17:05:52
阅读次数:
241
Farm IrrigationTime Limit:2 Seconds Memory Limit:65536 KBBenny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into...
分类:
其他好文 时间:
2014-07-12 15:32:51
阅读次数:
194
题目链接:
点我点我
题目:
ChiBi
Time Limit: 5 Seconds Memory Limit: 32768 KB
watashi's mm is so pretty as well as smart. Recently, she has watched the movie Chibi. So she knows more about the...
分类:
其他好文 时间:
2014-07-10 22:27:00
阅读次数:
262
AudioServices
Jump to:
navigation,
search
AudioServices is a group of C functions in
AudioToolbox for playing short (≤30 seconds) sounds.
Predefined sounds
There are some predefined system s...
分类:
移动开发 时间:
2014-07-10 17:29:49
阅读次数:
396
$(function(){ serviceHeight(); $('#seconds').hide(); inputFocus();/*开始接受订单*/$('.btn_order').click(function(){ if( !$(this).hasClass('btn_s...
分类:
Web程序 时间:
2014-07-09 17:41:51
阅读次数:
238
Problem D
Prince and Princess
Input: Standard Input
Output: Standard Output
Time Limit: 3 Seconds
In an n x n chessboard, Prince and Princess plays a game. The squares in the chessboard are ...
分类:
其他好文 时间:
2014-07-09 11:44:54
阅读次数:
211
3882 - And Then There Was One
Time limit: 3.000 seconds
Let's play a stone removing game.
Initially, n stones are arranged on a circle and numbered
1,..., n clockwise (Figure 1). You are also...
分类:
其他好文 时间:
2014-07-09 10:00:13
阅读次数:
172
Find the Marble
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Alice and Bob are playing a game. This game is played with several identical pots and one marble. When the game starts, Alice...
分类:
其他好文 时间:
2014-07-06 11:35:34
阅读次数:
133