摘要: 简单题判断的情况稍微有点复杂,注意判断整行都是“.”的情况View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;#define maxn 5005int n, m, s, k;char st[maxn];int cal(int a){ if (a < 0) return 0; return a;}int main(){ scanf(" 阅读全文
posted @ 2012-10-19 22:51 undefined2024 阅读(160) 评论(0) 推荐(0)
摘要: 简单题View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>using namespace std;int main(){ int n; scanf("%d", &n); if (n >= 199) printf("0\n"); else printf("%d\n", 199 - n); return 0;} 阅读全文
posted @ 2012-10-19 22:18 undefined2024 阅读(127) 评论(0) 推荐(0)