結果

問題 No.18 うーさー暗号
ユーザー surprise_tanakasurprise_tanaka
提出日時 2018-11-11 11:07:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-08-19 10:30:40
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

S = list(input())
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(len(S)):
    for j in range(25):
        if S[i] == alphabet[j]:
            S[i] = alphabet[j-i-1]
            print(S[i],end = "")
            break
0