Submission #213570

# Submission time Handle Problem Language Result Execution time Memory
213570 2020-03-26T07:40:51 Z berryzed Veni, vidi, vici (kriii2_V) Java 11
0 / 4
95 ms 12304 KB
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class V {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		String[] textArray = br.readLine().split(" ");

		StringBuilder builder = new StringBuilder();
		for (String text : textArray) {
			for (int i = 1; i < text.length(); i += 2) { // 더미 무시
				int y = text.charAt(i - 1) - 'a';
				int z = text.charAt(i) - 'a';
				char x = (char) ('a' + (y + z - n) % 26);
				builder.append(x);
			}
			builder.append(" ");
		}
		System.out.println(builder.toString());
	}
}
# Verdict Execution time Memory Grader output
1 Correct 82 ms 11892 KB Output is correct
2 Correct 81 ms 11892 KB Output is correct
3 Correct 83 ms 11880 KB Output is correct
4 Correct 84 ms 12176 KB Output is correct
5 Correct 83 ms 12056 KB Output is correct
6 Correct 95 ms 11896 KB Output is correct
7 Incorrect 86 ms 12304 KB Output isn't correct
8 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 89 ms 11944 KB Output is correct
2 Incorrect 89 ms 12024 KB Output isn't correct
3 Halted 0 ms 0 KB -