結果

問題 No.292 芸名
ユーザー knt3110
提出日時 2018-05-18 00:01:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-28 13:37:58
合計ジャッジ時間 1,075 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

s,t,u=(str(i) for i in input().split())

t=int(t)
u=int(u)

if t==u:
    s=s[:t-1]+s[t+1:]
elif t>u:
    s=s[:t-1]+s[t+1:]
    s=s[:u-1]+s[u+1:]
else:
    s=s[:t-1]+s[t+1:]
    s=s[:u-2]+s[u:]

print(s)
0