結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2016-04-29 00:02:49 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 49 ms / 5,000 ms |
コード長 | 527 bytes |
コンパイル時間 | 2,124 ms |
コンパイル使用メモリ | 74,276 KB |
実行使用メモリ | 50,276 KB |
最終ジャッジ日時 | 2024-07-07 06:06:24 |
合計ジャッジ時間 | 2,893 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.*;import java.math.*;public class Main {public static void main(String[] args)throws IOException{BufferedReader br = new BufferedReader(new InputStreamReader(System.in));StringBuilder sb = new StringBuilder();String a = br.readLine();int l = a.length();for(int i = 0; i < l; i++){char c = a.charAt(i);c -= (i+1)%26;if(c<'A')c += 26;sb.append(c);}System.out.println(sb);}}