- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 CF Game
A. Game time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Two players play a simple game. Each player is prov
2015-02-08 23:06:19 774
原创 CF Permutations【排列组合+求和】
B1. Permutations time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a permutation p of numbers 1
2015-02-08 22:59:04 1203
原创 POJ Dungeon Master 2251
Dungeon Master Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 17965 Accepted: 6974 Description You are trapped in a 3D dungeon and need to find the quicke
2015-02-06 23:42:34 603
原创 HDOJ 胜利大逃亡 1253
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 27577 Accepted Submission(s): 10501 Problem Description Ignatius被魔王抓走了,有一天魔王出差
2015-02-06 23:23:30 759
原创 bin神专题 Oil Deposits
L - Oil Deposits Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description The GeoSurvComp geologic survey company is responsible for detecti
2015-02-06 16:47:34 571
原创 set函数和map函数
set是使用二叉搜索树维护集合的容器,map是维护键和键对应的的值的容器。 #include #include using namespace std; int main() { //声明 set s; //插入元素 s.insert(1); s.insert(3); s.insert(5); //查找元素 set::iterator ite; ite=s.fin
2015-02-05 22:11:09 787
原创 POJ Fence Repair 3253
Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 28451 Accepted: 9244 Description Farmer John wants to repair a small length of the fence aroun
2015-02-05 18:31:30 588
转载 priority_queue的用法
priority_queue调用 STL里面的 make_heap(), pop_heap(), push_heap() 算法实现,也算是堆的另外一种形式。先写一个用 STL 里面堆算法实现的与真正的STL里面的 priority_queue用法相似的priority_queue, 以加深对 priority_queue 的理解 #include
2015-02-05 18:11:21 677
原创 POJ Expedition 2431
Expedition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7779 Accepted: 2278 Description A group of cows grabbed a truck and ventured on an expedition de
2015-02-05 16:52:18 520
原创 优先队列
#include #include using namespace std; int main() { priority_queuepque;//取的是最大值。 pque.push(3); pque.push(5); pque.push(1); while(!pque.empty()){ printf("%d\n",pque.top()); pque.pop(); } re
2015-02-05 14:57:18 831
转载 三十分钟掌握STL
这是本小人书。原名是《using stl》,不知道是谁写的。不过我倒觉得很有趣,所以化了两个晚上把它翻译出来。我没有对翻译出来的内容校验过。如果你没法在三十分钟内觉得有所收获,那么赶紧扔了它。文中我省略了很多东西。心疼那,浪费我两个晚上。 译者:kary contact:karymay@163.net STL概述 STL的一个重要特点是数据结构和算法的分离。尽管这是个简单的概念,但这种分离
2015-02-04 16:03:09 655
原创 bin神专题 迷宫问题
K - 迷宫问题 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0,
2015-02-02 23:46:40 799
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人