11 2014 档案
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1042栈的模拟,题目大意是已知元素次序, 判断出栈次序是否合理。 需要考虑到各种情况, 分类处理。常见错误:使用前未清空栈使用STL思路较为清晰代码附上, 欢迎各位大神指点~~#include #incl...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1042由于数字特别大, 所以用数组来模拟。 经测试, 数组大小开50000 可过。附AC代码, 欢迎大神指点~#include #include const int maxn = 50000 + 100;...
阅读全文


浙公网安备 33010602011771号