Submission #213571

#TimeUsernameProblemLanguageResultExecution timeMemory
213571berryzedVeni, vidi, vici (kriii2_V)Java
4 / 4
105 ms12560 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' + (26 + 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...