結果

問題 No.18 うーさー暗号
ユーザー 田中太郎田中太郎
提出日時 2023-07-18 23:57:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 283 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 81,680 KB
実行使用メモリ 53,340 KB
最終ジャッジ日時 2023-10-19 03:08:47
合計ジャッジ時間 1,384 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,340 KB
testcase_01 AC 40 ms
53,340 KB
testcase_02 AC 39 ms
53,340 KB
testcase_03 AC 40 ms
53,340 KB
testcase_04 AC 39 ms
53,340 KB
testcase_05 AC 40 ms
53,340 KB
testcase_06 AC 40 ms
53,340 KB
testcase_07 AC 40 ms
53,340 KB
testcase_08 AC 41 ms
53,340 KB
testcase_09 AC 45 ms
53,340 KB
testcase_10 AC 39 ms
53,340 KB
testcase_11 AC 40 ms
53,340 KB
testcase_12 AC 41 ms
53,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())

omoji = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

ans = []

for i in range(len(s)):
    ind = (omoji.index(s[i])-(i+1))%26
    ans.append(omoji[ind])
    
print("".join(ans))
0