2013年7月20日

POJ 1002 487-3279

摘要: 题目链接:http://poj.org/problem?id=1002&lang=zh-CN接替思路;先把字符串转换成数字或数字串,第一次写的代码是数字串,调用了stirng,和map 所以花时较长 1500ms,第二次用数字800ms!第一次代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 const int max_n = 1e5+3; 9 10 string str[max_n], str2, str3[max_n];11 map p_... 阅读全文

posted @ 2013-07-20 19:29 圣手摘星 阅读(149) 评论(0) 推荐(0) 编辑

导航