ZOJ-2514
来源:互联网 发布:avision扫描仪软件 编辑:程序博客网 时间:2024/06/03 16:50
#include<stdio.h>#include<string.h>int main(){ int n; while (scanf("%d", &n), n) { char name[1000][11]; char pwd[1000][11]; int flag[1000]; memset(flag, 0, 1000 * sizeof(int)); int i, j, count = 0; for (i = 0; i < n; i++) { scanf("%s %s", name[i], pwd[i]); int process = 0; for (j = 0; pwd[i][j] != '\0'; j++) { if (pwd[i][j] == '1' || pwd[i][j] == 'l' || pwd[i][j] == 'O' || pwd[i][j] == '0') { flag[i] = 1; if (!process) { count++; process = 1; } if (pwd[i][j] == '1') pwd[i][j] = '@'; if (pwd[i][j] == 'l') pwd[i][j] = 'L'; if (pwd[i][j] == '0') pwd[i][j] = '%'; if (pwd[i][j] == 'O') pwd[i][j] = 'o'; } } } if (count) { printf("%d\n", count); for (i = 0; i < n; i++) if (flag[i] == 1) printf("%s %s\n", name[i], pwd[i]); } else printf("No account is modified.\n"); } return 0;}
0 0
- zoj 2514
- ZOJ-2514
- ZOJ 2514
- zoj 2514水题
- zoj 2514 Generate Passwords
- ZOJ 2514Generate Passwords
- ZOJ 2514 Generate Passwords
- zoj 2514
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- 家用路由器会遭受攻击吗?
- poj 2796 Feel Good
- NYOJ770 仿射密码
- webkit在vs2008中编译
- Memcached 解析五
- ZOJ-2514
- CSS里面position:relative、absolute、static、relative总结
- Android Studio环境下关联Android源码
- 设计模式-行为型模式总结实例(二)
- union和distinct 的使用
- Hadoop简介
- 设计模式介绍之四:模板方法(Template Method)模式
- 基于颜色直方图的搜索
- C++标准库