結果
問題 | No.1455 拡張ROTN |
ユーザー | nohakai3 |
提出日時 | 2022-07-04 21:47:29 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 496 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-05-08 11:45:02 |
合計ジャッジ時間 | 1,836 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | RE | - |
testcase_02 | AC | 33 ms
10,624 KB |
testcase_03 | AC | 33 ms
10,752 KB |
testcase_04 | AC | 31 ms
10,752 KB |
testcase_05 | AC | 33 ms
10,624 KB |
testcase_06 | AC | 30 ms
10,752 KB |
testcase_07 | AC | 30 ms
10,752 KB |
testcase_08 | AC | 30 ms
10,752 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
ソースコード
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()