摘要: 国旗问题的水题 直接上下扫两遍; 代码: #include<bits/stdc++.h>using namespace std;int n,m;char s[105][105];int x1,x2,x3;int main(){ int sum; while(scanf("%d%d",&n,&m)!= 阅读全文
posted @ 2017-08-12 23:12 sortmin 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题意找一段文字的大写字母 水题 注意getchar的使用 代码: #include<bits/stdc++.h>using namespace std;int n;char s[205];int main(){ int sum; while(cin>>n) { sum=0; int ans = 0; 阅读全文
posted @ 2017-08-12 22:14 sortmin 阅读(112) 评论(0) 推荐(0) 编辑