
数据结构基础
slashXX_xu
量变终会质变。坚持!
展开
-
UVA - 673 - Parentheses Balance
#include #include #include #include using namespace std;// #define LOCAL_TESTbool Check(string str){ stack sTemp; bool bCorrect = true; for ( int index=0; index<str.length(); index++ ) {原创 2014-06-03 23:18:01 · 630 阅读 · 0 评论 -
UVA - 10050 - Hartals
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=103&page=show_problem&problem=991原创 2014-06-18 22:19:07 · 690 阅读 · 0 评论 -
UVA - 540 - Team Queue
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=103&page=show_problem&problem=481原创 2014-07-02 21:36:53 · 837 阅读 · 0 评论 -
UVA - 10881 - Piotr's Ants
传送门: http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=25979题意: 蚂蚁在单杠上爬,互相碰撞就转向。输入杠长,持续时间,还有蚂蚁数量。最后得出所有蚂蚁的位置。 ① 蚂蚁因碰撞而掉头时,看上去就是两个点“对穿而过”。 ② 如,蚂蚁点A(1,R),在碰撞的两秒后,存在点A'(3,原创 2015-04-17 21:08:04 · 479 阅读 · 0 评论