結果
問題 | No.1455 拡張ROTN |
ユーザー |
|
提出日時 | 2021-03-25 21:57:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-29 09:15:47 |
合計ジャッジ時間 | 1,701 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
S=input()K=int(input())for i in range(min(K,10)):T=""for c in S:if c.isupper():T+=chr((ord(c)-65+1)%26+65)elif c.islower():T+=chr((ord(c)-97+1)%26+97)elif c=='9':T+="CpCzNkSuTbEoA"else:T+=str(int(c)+1)S=Tif K<=10:print(S)else:for c in S:if c.isupper():print(end=chr((ord(c)-65+K-10)%26+65))else:print(end=chr((ord(c)-97+K-10)%26+97))print()