#include<stdio.h>intmain(void){int i,j,N;int t_f1=0,t_f2=0,count=0;char key[81],c;scanf("%d",&N);getchar();for(i=1;i<=N;i++){for(j=1;c!='\n';j++){
c=getchar();
key[j]=c;
count++;//printf("count=%d\n",count);}count--;//printf("count=%d\n",count);if(count<6){printf("Your password is tai duan le.\n");goto end;}for(j=1;j<=count;j++){if(('a'<=key[j]&&key[j]<='z')||('A'<=key[j]&&key[j]<='Z'))t_f1=1;elseif('0'<=key[j]&&key[j]<='9')t_f2=1;elseif(key[j]!='.'){printf("Your password is tai luan le.\n");goto end;}}if(t_f1==1){if(t_f2==1)printf("Your password is wan mei.\n");elseprintf("Your password needs shu zi.\n");}else{if(t_f2==1)printf("Your password needs zi mu.\n");else;}
end:count=0;c=-1;t_f1=0;t_f2=0;}return0;}
7-10 检查密码PTA传送门本题要求你帮助某网站的用户注册模块写一个密码合法性检查的小功能。该网站要求用户设置的密码必须由不少于6个字符组成,并且只能有英文字母、数字和小数点 .,还必须既有字母也有数字。输入格式:输入第一行给出一个正整数 N(≤ 100),随后 N 行,每行给出一个用户设置的密码,为不超过 80 个字符的非空字符串,以回车结束。输出格式:对每个用户的密码,在一行中输出系统反馈信息,分以下5种:如果密码合法,输出 Your password is wan mei.;如果密