結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-08 09:12:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 5,000 ms |
| コード長 | 288 bytes |
| コンパイル時間 | 737 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 55,552 KB |
| 最終ジャッジ日時 | 2024-12-30 15:59:44 |
| 合計ジャッジ時間 | 3,033 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
S = list(input())[:-1]
def f(x,i):
return chr((ord(x)-ord('A')-i)%26+ord('A'))
S = [f(a,i+1) for i,a in enumerate(S)]
print(''.join(S))