結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:47:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 78,948 KB |
| 最終ジャッジ日時 | 2026-07-07 07:43:42 |
| 合計ジャッジ時間 | 2,348 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
s = input().strip()
result = []
for idx in range(len(s)):
c = s[idx]
shift = idx + 1 # 1-based index
original_ord = ord(c) - ord('A')
new_ord = (original_ord - shift) % 26
result.append(chr(new_ord + ord('A')))
print(''.join(result))
lam6er