线段树。段区间,终于完全自己A掉的。 1 #include 2 #include 3 4
#define MAXN 100005 5 #define lson l, mid, rt>1);20 sums[rt>1));21
adds[rt] = 0;22 ...
分类:
其他好文 时间:
2014-06-06 23:32:27
阅读次数:
279
An Easy GameTime Limit: 2 Seconds Memory Limit:
65536 KBOne day, Edward and Flandre play a game. Flandre will show two
01-strings s1 and s2, the leng....
分类:
其他好文 时间:
2014-06-06 23:24:46
阅读次数:
248
点击打开链接题意:集合S支持一下四种操作: INSERT(S,x) :
假设S中没有x,则插入xDELETE(S,x): 假设S中有x,则删除xK-TH(S): 输出S中第K小的数COUNT(S,x):
统计S中小于x的数有多少个一共同拥有Q(1 ≤ Q ≤ 200000)次操作。Tr...
分类:
其他好文 时间:
2014-06-06 21:55:34
阅读次数:
277
The first three generations of the Unreal
Engine included a sandboxed scripting language, UnrealScript, which provided a
simple interface for gameplay...
分类:
编程语言 时间:
2014-06-06 06:44:59
阅读次数:
421
一、案例介绍:点击屏幕中的UIButton,将在UIDatePicker选择的日期显示在UILabel中,如图01,02图01图02二、案例步骤:1、选择Simple
View Aplication,取名cq.36.日期选择器,如图03图032、Main.storyboard,如图043、CQ36V...
分类:
移动开发 时间:
2014-06-04 15:23:24
阅读次数:
271
一、案例介绍:点击UIToolbar中的UIBarButtonItem,改变UILabel中的文本,如图01,02,03图01图02图03二、案例步骤:1、选择Simple
View Aplication,取名cq.33.工具栏和导航栏,如图042、Maim.storyboard,如图053、CQ3...
分类:
移动开发 时间:
2014-06-04 14:55:30
阅读次数:
350
一、点击UINavigationBar中的UIBarButtonItem,改变UILabel中的文本,如图01,02,03图01图02图03二、项目步骤:1、选择Simple
View Aplication,取名cq.40.UINavigationBar,如图04图042、Main.storyboa...
分类:
移动开发 时间:
2014-06-04 14:47:56
阅读次数:
298
一、案例介绍:以集合形式展现图片,如图01图01二、案例步骤:1、选择Simple View
Aplication,取名cq.38.集合视图,如图02图022、Main.storyboard,如图03图033、events.plist,如图04,054、CQ38ViewController.h#im...
分类:
移动开发 时间:
2014-06-04 14:43:17
阅读次数:
357
一、案例介绍:点击UIButton,将选中的省市信息显示在UILabel中,如图01,02图01图02二、案例步骤:1、选择Simple
View
Aplication,取名cq.37.普通选择器,如图03图032、Main.storyboard,如图043、provinces_cities.pli...
分类:
移动开发 时间:
2014-06-04 14:38:12
阅读次数:
269