Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int key = Integer.parseInt(scanner.nextLine()),
- n = Integer.parseInt(scanner.nextLine());
- String message = "";
- for (int i = 0; i < n; i++) {
- message += Character.toString(scanner.nextLine().charAt(0) + key);
- }
- System.out.println(message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement