304003: CF770A. New Password
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
New Password
题意翻译
小明要修改他的Ugoul密码,要求其密码必须满足以下要求: 1、长度必须是N 2、必须是由小写字母组成 3、共有K种不同的字符 4、任意两个相同字符不可以相连 请你为他构造一个合适的密码,使得密码满足以上条件题目描述
Innokentiy decides to change the password in the social net "Contact!", but he is too lazy to invent a new password by himself. That is why he needs your help. Innokentiy decides that new password should satisfy the following conditions: - the length of the password must be equal to $ n $ , - the password should consist only of lowercase Latin letters, - the number of distinct symbols in the password must be equal to $ k $ , - any two consecutive symbols in the password must be distinct. Your task is to help Innokentiy and to invent a new password which will satisfy all given conditions.输入输出格式
输入格式
The first line contains two positive integers $ n $ and $ k $ ( $ 2<=n<=100 $ , $ 2<=k<=min(n,26) $ ) — the length of the password and the number of distinct symbols in it. Pay attention that a desired new password always exists.
输出格式
Print any password which satisfies all conditions given by Innokentiy.
输入输出样例
输入样例 #1
4 3
输出样例 #1
java
输入样例 #2
6 6
输出样例 #2
python
输入样例 #3
5 2
输出样例 #3
phphp