結果
問題 | No.18 うーさー暗号 |
ユーザー | YOSHI |
提出日時 | 2021-02-17 11:47:51 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 3,444 ms |
コンパイル使用メモリ | 71,976 KB |
実行使用メモリ | 58,320 KB |
最終ジャッジ日時 | 2023-10-11 23:06:48 |
合計ジャッジ時間 | 6,037 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 123 ms
55,960 KB |
testcase_01 | AC | 124 ms
55,760 KB |
testcase_02 | AC | 123 ms
55,896 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 125 ms
55,452 KB |
testcase_11 | AC | 126 ms
55,684 KB |
testcase_12 | WA | - |
ソースコード
import java.util.Scanner; public class No00000018_Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); char[] charA = scan.nextLine().toCharArray(); char[] charB = new char[charA.length]; for(int i = 0; i < charA.length; i++) { charB[i] = (char)((charA[i] - (i + 1) + 'A') % 26 + 'A'); } System.out.println(new String(charB)); scan.close(); } }