結果

問題 No.18 うーさー暗号
ユーザー ryusukeryusuke
提出日時 2022-02-01 22:10:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 662 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 75,652 KB
最終ジャッジ日時 2023-09-02 02:35:56
合計ジャッジ時間 2,523 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,316 KB
testcase_01 AC 69 ms
71,120 KB
testcase_02 AC 71 ms
71,604 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ans = []
for i, j in enumerate(input()):
    p = (ord(j) + ((25 - i) % 26)) % 90 + 64
    if p == 64:
        ans.append('Z')
    else:
        ans.append(chr(p))

print(*ans, sep='')
0