結果
問題 |
No.1455 拡張ROTN
|
ユーザー |
![]() |
提出日時 | 2022-07-04 21:47:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 496 bytes |
コンパイル時間 | 444 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-14 15:29:22 |
合計ジャッジ時間 | 1,914 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 RE * 1 |
other | AC * 7 WA * 15 |
ソースコード
t=["" for i in range(26)] t[0]="CpCzNkSuTbEoA" for i in range(1,26): for c in t[i-1]: if c.isupper(): t[i]+=chr(65+(ord(c)-65+1)%26) else: t[i]+=chr(97+(ord(c)-97+1)%26) s=input() n=int(input()) for c in s: if c.isupper(): print(end=chr(65+(ord(c)-65+1)%26)) elif c.islower(): print(end=chr(97+(ord(c)-97+1)%26)) elif 10>int(c)+n: print(end=str(int(c))+n) else: print(t[(n+int(c)-10)%26],end="") print()