結果
問題 | No.18 うーさー暗号 |
ユーザー |
![]() |
提出日時 | 2019-03-30 19:18:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-16 09:41:36 |
合計ジャッジ時間 | 1,241 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
# -*- coding: utf-8 -*-s = list(input())for i in range(len(s)):temp = ord(s[i])temp -= i + 1if temp <= 64:while temp <= 64:temp += 26if temp >= 91:while temp >= 91:temp -= 26s[i] = chr(temp)s = "".join(s)print(s)