結果

問題 No.18 うーさー暗号
ユーザー どまおーどまおー
提出日時 2018-05-10 01:06:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 178 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-10 11:33:35
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,760 KB
testcase_01 AC 16 ms
7,916 KB
testcase_02 AC 15 ms
7,868 KB
testcase_03 AC 16 ms
7,764 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 16 ms
7,764 KB
testcase_06 RE -
testcase_07 AC 15 ms
7,832 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,t,i = [chr(i) for i in range(65, 65+26)],"",0
for s in input():
    w = a.index(s) - i
    if w == 0: t += a[25]
    else: t += a[w-1]
    i+=1
    if i >len(a): i = 1
print(t)
0