摘要: 囧。 同样的题目在PKU上过了。 HOJ上总是超时。。。http://poj.org/problem?id=2493istringstream 可将整行字符串由空格分开成一个个连续字符串。 代码如下:#include<iostream>#include<sstream>#include<algorithm>#include<map>#include<cstdio>using namespace std;int main() { int se; cin >> se; for (int c = 1; c <= se; c 阅读全文
posted @ 2011-06-16 00:27 归雾 阅读(190) 评论(0) 推荐(0)