当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1645: J Emergency Measures

题目描述
CSDN has reportedly suffered from hackers, some sites account, password, and other related data were leaked. On these sites use the same email address you registered, several usernames may be different account, hope to change the password has been leaked as soon as possible. Strategy is as follows: you traverse database through the email address, find your user name and password, and change the password. Change the rules for: lowercase and uppercase exchange, non-alphabetic characters remain the same.
输入解释
The first line contains two integers n , m ; the number of your email address and the number of test cases. The following n lines, each line contains an email address. The following m lines, each line contains an account、username password and email address. 1≤n≤100 ,  1≤m≤10000
输出解释
Several lines, each line has one of your accounts, including: your account and the modified password. Without your account, then output “EMPTY”.
输入样例
2 5
2015@sspu.edu.cn
2016@stu.sspu.edu.cn
sspu iLoveCats 2015@sspu.edu.cn
2012 maya2012 cplusplus@exam.com
KittyCat 5iKitty 2016@stu.sspu.edu.cn
program password teacher@exam.com
whoAmi Feb.29$ 2015@sspu.edu.cn
输出样例
sspu IlOVEcATS
KittyCat 5IkITTY
whoAmi fEB.29$
提示

样例输入

1 1

abc@sspu.edu.cn

2012 maya2012 cplusplus@exam.com


样例输出
EMPTY

该题目包含在题集 SSPU新生赛

共提交 9

通过率 22.22%
时间上限 内存上限
1000 MS 128 MB