原创 杭電2846
Repository Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 210
原创 HDU 3460Ancient Printer
Ancient Printer Time Limit: 2000/1000 MS (Java/Others) Memory Limit:
原创 Codeforces Round #228 (Div. 2)C. Fox and Box Accumulation
C. Fox and Box Accumulation time limit per test 1 second memory limit per test 256 megabytes input standard inpu
原创 multimap操作
1,multimap與map大致相同。 (1),insert不同; (2),允許有相同關鍵字的,輸出按順序輸出。 2,find()相同的返回指向第一個迭代器。 3,erase()刪除相同的所有。 #include <iost
原创 map操作
注意: C++ STL中標準關聯容器set, multiset, map, multimap內部採用的就是一種非常高效的平衡檢索二叉樹:紅黑樹,也成爲RB樹(Red-Black Tree)。 map有去重功能,以最後一個爲準。 map有自
原创 HDU1305 Immediate Decodability
Immediate Decodability Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submis
原创 Codeforces Round #228 (Div. 2)A. Fox and Number Game
A. Fox and Number Game time limit per test 1 second memory limit per test 256 megabytes input standard input
原创 Codeforces Round #229 (Div. 2) B. Inna, Dima and Song
B. Inna, Dima and Song time limit per test 1 second memory limit per test 256 megabytes input standard input
原创 multiset操作
1,multiset多重集合容器使用RB-Tree的平衡二叉檢索樹的數據結構。2,multiset和multimap一樣可以重複的 3,erase刪
原创 09湘潭賽
猜想 Time Limit 3000ms Memory Limit 65536K description 哥德巴赫(Goldbach ]C.,1690.3.18~1764.11.20)是德國數學家;出生于格
原创 queue操作
先進先出 #include <iostream> #include <queue> #include <string> #include <cstdio> using namespace std; struct node { in
原创 set操作
集合通過一個鏈表來組 織,在插入操作和刪除操作上比向量(vector)快,但查找或添加末尾的元素時會有些慢。 set,multiset也會排序,但只要set去重。 map,multimap也會排序,但只要map去重。 #include
原创 Codeforces Round #228 (Div. 2)B. Fox and Cross
B. Fox and Cross time limit per test 1 second memory limit per test 256 megabytes input standard input out
原创 杭電1671字典樹
Phone List Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 825
原创 Codeforces Round #229 (Div. 2) Inna and Alarm Clock
A. Inna and Alarm Clock time limit per test 1 second memory limit per test 256 megabytes input standard input