摘要:
简单的模拟View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>using namespace std;#define maxn 100string st;int n;bool left(int a){ for (int i = a - 1; i >= 0; i--) { if (st[i] == '|' || st[i] == '\\' || st[i] 阅读全文
posted @ 2011-03-13 12:06
undefined2024
阅读(229)
评论(0)
推荐(0)
摘要:
简单的模拟,字符串题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>using namespace std;#define maxn 100string st;char pairs[maxn][2];bool ok(char a, char b, int x){ for (int i = 0; i < x; i++) if (pairs[i][0] == a && p 阅读全文
posted @ 2011-03-13 12:05
undefined2024
阅读(279)
评论(0)
推荐(0)
摘要:
简单题,View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int t, n; scanf("%d", &t); for (int i = 0; i < t; i++) { scanf("%d", &n 阅读全文
posted @ 2011-03-13 12:03
undefined2024
阅读(198)
评论(0)
推荐(0)
摘要:
简单的字符串题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); string st; while (getline(cin, st) && st != "#") { int sum = 0; for (int i = 0; i 阅读全文
posted @ 2011-03-13 12:03
undefined2024
阅读(246)
评论(0)
推荐(0)
摘要:
简单题,货币换算View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int t, n, tt = 0; scanf("%d", &t); while (t--) { tt++; scanf("%d", &n) 阅读全文
posted @ 2011-03-13 12:01
undefined2024
阅读(163)
评论(0)
推荐(0)