Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void solve() throws IOException {
- char[] s = "qwertyuiopasdfghjklzxcvbnm".toCharArray();
- int n = rI();
- int m = rI();
- int r1 = 0;
- int r2 = 0;
- while(r1<n){
- out.print(s[r2]);
- r2++;
- r1++;
- if(r2==m){
- r2=0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement