/* * 水题,,临睡前临时写的代码..1A * * */ #include <stdio.h> #include <string.h> char pswd[1002][15]; char name[1002][15]; int chuli(int i) { int flag2 = 0; int len =strlen(pswd[i]); for(int j=0;j<len;j++) { if(pswd[i][j] =='1') { pswd[i][j] = '@'; flag2 = 1; } else if(pswd[i][j] == '0') { pswd[i][j]='%'; flag2 =1;} else if(pswd[i][j] == 'O') { pswd[i][j] = 'o';flag2 =1;} else if(pswd[i][j] == 'l') { pswd[i][j] = 'L';flag2 =1;} } return flag2 ; } int main(void) { int n;int flag[1005]; while (scanf("%d",&n)!=EOF&&n) { int count =0; memset(flag,0,sizeof(flag)); for(int i=0;i<n;i++) { scanf("%s %s",name[i],pswd[i]); if( chuli(i) ) flag[count++]=i; } if(count!=0) { printf("%d/n",count); for(int j=0;j<count;j++) printf("%s %s/n",name[flag[j] ],pswd[flag[j] ]); } else printf("No account is modified./n"); } return 0; } 无参考价值..