結果

問題 No.18 うーさー暗号
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-04-04 09:22:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-09-16 05:28:05
合計ジャッジ時間 2,361 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,440 KB
testcase_01 AC 77 ms
71,376 KB
testcase_02 AC 77 ms
71,520 KB
testcase_03 AC 77 ms
71,368 KB
testcase_04 AC 77 ms
71,408 KB
testcase_05 AC 79 ms
71,384 KB
testcase_06 AC 82 ms
71,472 KB
testcase_07 AC 77 ms
71,432 KB
testcase_08 AC 78 ms
71,288 KB
testcase_09 AC 78 ms
71,464 KB
testcase_10 AC 76 ms
71,412 KB
testcase_11 AC 77 ms
71,284 KB
testcase_12 AC 78 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())


def woosaw(n,x):
    alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    index = alphabet.find(x)
    return alphabet[(index-n)%len(alphabet)]
    

ans = ''
for i in range(len(s)):
    ans += woosaw(i+1,s[i])

print(ans)
0