Submission #213570

#TimeUsernameProblemLanguageResultExecution timeMemory
213570berryzedVeni, vidi, vici (kriii2_V)Java
0 / 4
95 ms12304 KiB
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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...