結果
問題 |
No.292 芸名
|
ユーザー |
|
提出日時 | 2023-06-05 11:22:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 350 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-29 05:56:31 |
合計ジャッジ時間 | 1,394 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
def RC(s, index): return s[:index] + s[index+1:] def TRC(s, index1, index2): return s[:index1] + s[index1+1:index2] + s[index2+1:] K = input().split() S, T, U = K[0], int(K[1]), int(K[2]) if T == U: print(RC(S, T)) else: if T > U: print(TRC(S, U, T)) else: print(TRC(S, T, U))