#Lutece2146. 密码
密码
Migrated from Lutece 2146 密码
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
每过一段时间都会更换各个社交账号的密码。密码当然不能明文存储,随意写下了若干个位16进制整数,一则位的密码是将该数保留位且相对位置不变的最大16进制数。
现在要去睡午觉,请你帮助他完成密码生成器。
Input
包含多组测试数据。
每组测试数据,第一行是两个整数,含义如题目所示。
第二行包含一个位16进制整数,字母小写,n位数以空格分隔。
Output
每组数据输出一行表示的位密码。(不含空格)
Samples
4 2
9 a b c
6 3
1 a 2 b 3 c
bc
b3c
Constraints
Note
数据加强,注意数据范围 存在k=0
Resources
2019 UESTC ACM Training for Data Structures