国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

PAT 1035

2019-11-08 02:45:48
字體:
來源:轉載
供稿:網友
#include<cstdio>#include<algorithm>#include<stdlib.h>#include<cstring>#include<math.h>struct pnode{	char name[20];	char pw[20];	bool ischange;}temp[1010];int main(){	int n,k=0;	int len;	scanf("%d",&n);	for(int i=0;i<n;i++)	{		scanf("%s %s",temp[i].name,temp[i].pw);			len=strlen(temp[i].pw);		temp[i].ischange=false;		for(int j=0;j<len;j++)		{			if(temp[i].pw[j]=='1')			{				temp[i].pw[j]='@';				temp[i].ischange=true;			}			else					if(temp[i].pw[j]=='l')				{					temp[i].pw[j]='L';					temp[i].ischange=true;				}			else					if(temp[i].pw[j]=='0')				{					temp[i].pw[j]='%';					temp[i].ischange=true;				}			else					if(temp[i].pw[j]=='O')				{					temp[i].pw[j]='o';					temp[i].ischange=true;				}						}		  if(temp[i].ischange)				k++;	}	if(k!=0)	{		PRintf("%d/n",k);		for(int i=0;i<n;i++)		{			if(temp[i].ischange==true)				printf("%s %s/n",temp[i].name,temp[i].pw);		}	}	else if(n==1&&k==0)		printf("There is %d account and no account is modified",n);	else		printf("There are %d accounts and no account is modified",n);		system("pause");	return 0;}
上一篇:通讀cheerio API

下一篇:位運算的威力

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 昌黎县| 高州市| 化州市| 旺苍县| 南华县| 上饶市| 保山市| 无锡市| 渝北区| 高阳县| 林芝县| 华安县| 巴塘县| 顺平县| 二手房| 西青区| 汾西县| 抚顺县| 西畴县| 泰和县| 西林县| 金华市| 乡宁县| 祁阳县| 文登市| 翁源县| 旌德县| 彭山县| 星座| 拜泉县| 韶关市| 开阳县| 崇左市| 萨迦县| 东光县| 健康| 苏尼特右旗| 古丈县| 新乐市| 永修县| 阳西县|