摘要: 好吧, 这道题绕了好久,之前用int, 用 double, 最后才发现是long long 啊 而且string.h 头文件也没加 。。。。。//http://acmore.net/problem.php?cid=1015&pid=3#include <iostream>#include <stdio.h>#include <string>#include <string.h>#include <stack>using namespace std;stack<long long> stk;stack<char 阅读全文
posted @ 2013-04-29 11:05 旅行的蜗牛 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 好吧,水了有点要注意了,用ges(..)超时, scanf(...)就A掉了。。。#include <iostream>#include <stdio.h>#include <string>#include <set>using namespace std;int main (){ set<string> st; pair< set<string>::iterator, bool > pr; char str[25]; int n, m; while (scanf("%d%d", & 阅读全文
posted @ 2013-04-29 10:28 旅行的蜗牛 阅读(136) 评论(0) 推荐(0) 编辑