結果

問題 No.18 うーさー暗号
ユーザー Natsume-MNatsume-M
提出日時 2016-11-28 18:05:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 2,027 ms
コンパイル使用メモリ 71,844 KB
実行使用メモリ 55,828 KB
最終ジャッジ日時 2023-09-21 12:33:59
合計ジャッジ時間 4,601 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,752 KB
testcase_01 AC 123 ms
55,492 KB
testcase_02 AC 124 ms
55,572 KB
testcase_03 AC 128 ms
55,660 KB
testcase_04 AC 127 ms
55,828 KB
testcase_05 AC 130 ms
55,696 KB
testcase_06 AC 129 ms
55,484 KB
testcase_07 AC 127 ms
55,504 KB
testcase_08 AC 128 ms
55,356 KB
testcase_09 AC 134 ms
55,300 KB
testcase_10 AC 121 ms
55,580 KB
testcase_11 AC 121 ms
55,252 KB
testcase_12 AC 125 ms
55,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y18 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        for (int i=0; i<s.length; i++)	s[i] = (char)(((s[i]-66-i)%26+26)%26+65);
        System.out.println(String.valueOf(s));
    }
}
0