摘要:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=152简单回溯, 这代码被我写的, 各种vector, map, set, 离了STL就活不下去的样子...代码有如下几点需要注意:1.回溯时判重用set, 自定义类型用set的时候需要重载" 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namesp 阅读全文
posted @ 2013-12-15 23:59
NextLife
阅读(285)
评论(0)
推荐(0)
摘要:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=37纯模拟, 要先考虑好用什么数据结构能方便的支持模拟中的各种操作, 我选择的是链表, 于是直接用的STL的List, STL真是很实用, 点赞. 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 #define M... 阅读全文
posted @ 2013-12-15 15:35
NextLife
阅读(281)
评论(0)
推荐(0)
浙公网安备 33010602011771号