摘要:
#include<iostream>#include<string>#include<cstring>using namespace std;int main(){ int n,sum[15][3]; char s[15][30]; while(cin>>n) { if(n==0)break; cin.ignore(); for(int i =0;i<n;i++) { cin.getline(s[i],30); for(int j=... 阅读全文
摘要:
#include<iostream>#include<cstring>using namespace std;int aa[15],bb[50];void print(){ int i; for(i=1;i<41;i++) { if(bb[i]==0) cout<<" "; else if(bb[i]==1) cout<<"."; else if(bb[i]==2) cout<<"x"; else cout<<"W"; } ... 阅读全文
摘要:
#include<stdio.h>#include<string.h>#include<stdlib.h>char s[140];int len,i,j,a=0,b;int main(){ while (fgets(s,140,stdin)) { len =strlen(s); for (i=0;i<len;i++) { if (s[i]>48 && s[i]<58) { b = s[i]-'0'; a+=b... 阅读全文
摘要:
#include<iostream>#include<cstring>#include<string>using namespace std;char s[100000];int main(){ while(cin.getline(s,100000)) { for(int i=0;i<strlen(s);i++) { cout<<char(s[i]-'1'+'*'); } cout<<endl; memset(s,0,sizeof(s)); } return 0;} 阅读全文