摘要: http://poj.grids.cn/practice/2804 因为数据比较大,很容易tle要ac起码就得将二分查找使出来先做快排,然后进行二分查找二分查找似乎也有stl函数:char p *= (dic *)bsearch(buf, dict, 100050 , sizeof(dict[0]) 阅读全文
posted @ 2012-02-12 11:33 MooreZHENG 阅读(449) 评论(0) 推荐(0) 编辑
摘要: http://poj.grids.cn/practice/2797 【wa代码】 【ac代码】 【标程】 阅读全文
posted @ 2012-02-12 11:26 MooreZHENG 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 一次ac的就不说啥了。。 2799:浮点数格式 1 #include <stdio.h> 2 #include <string.h> 3 #include <ctype.h> 4 #include <cmath> 5 6 char flo[10050][55]; 7 int poi[10050]; 阅读全文
posted @ 2012-02-12 11:19 MooreZHENG 阅读(314) 评论(0) 推荐(0) 编辑