This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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' + (26 + y + z - n) % 26);
builder.append(x);
}
builder.append(" ");
}
System.out.println(builder.toString());
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |