摘要: 题目:http://poj.org/problem?id=1840题解:http://blog.csdn.net/lyy289065406/article/details/6647387小优姐讲的很好了 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 short hash[25000001]; 9 int main()10 {11 int a1,a2,a3,a4,a5;12 int x1,x2,x3,x4,x5;13 int s... 阅读全文
posted @ 2013-08-23 21:15 水门 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=2418在poj 上交题总是有各种错误,再次感叹各个编译器。c++ AC代码,G++为超时,上代码: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 char s[100]; 7 int main() 8 { 9 mapmp;10 map::iterator iter;//声明迭代器11 int sum=0;12 while(gets(s)!=NULL)13 {14 mp[s]++;... 阅读全文
posted @ 2013-08-23 16:57 水门 阅读(324) 评论(1) 推荐(0) 编辑