摘要: 找不到题目了,试敲了一下感觉还是挺不错的,学习了下别人的代码,差不多能感受到他的强大。哈哈。sl :可以说算是超级水提了,只要清楚这个数据结构就知道了。 1#include2#include3#include4usingnamespacestd;5constintMAX=100000+10;6int... 阅读全文
posted @ 2014-08-17 17:50 acvc 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1#include2#include3#include4#include5#defineN1000056usingnamespacestd;7structSBT{8//左子树指针,右子树指针,大小,键值9intleft,right,size,key;10voidInit(){11left=righ... 阅读全文
posted @ 2014-08-17 17:44 acvc 阅读(266) 评论(0) 推荐(0) 编辑
摘要: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4441题意:有n个靶子,每个靶子有3个val,需要满足3钟情况分别得到他们的val。问最大的... 阅读全文
posted @ 2014-08-17 00:19 acvc 阅读(176) 评论(0) 推荐(0) 编辑
摘要: C. Petya and SpidersLittle Petya loves training spiders. Petya has a boardn × min size. Each cell of the board initially has a spider sitting on it. A... 阅读全文
posted @ 2014-08-17 00:10 acvc 阅读(209) 评论(0) 推荐(0) 编辑