結果
問題 |
No.18 うーさー暗号
|
ユーザー |
|
提出日時 | 2017-10-29 16:55:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-22 05:19:30 |
合計ジャッジ時間 | 1,144 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 2 RE * 11 |
ソースコード
str_list = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") def main(): S = input() i = 0 for s in list(S): print(get_str(i, s), end='') i += 1 print() def get_str(index, value): value_index = str_list.index(value) result_index = value_index - index if result_index < 0: return str_list[result_index + 26] else: return str_list[result_index] if __name__ == '__main__': main()