結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2017-06-07 05:45:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,368 KB |
最終ジャッジ日時 | 2024-07-07 06:31:23 |
合計ジャッジ時間 | 1,132 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
def user(my_string):base_ord = ord('A')total_chr = ord('Z') - base_ord + 1user_string = str()for i, character in enumerate(my_string, start=1):new_ord = (ord(character) - i + base_ord) % total_chr + base_orduser_string += chr(new_ord)return user_stringif __name__ == '__main__':print(user(input()))