結果

問題 No.292 芸名
ユーザー riyuyuriyuyu
提出日時 2018-03-24 16:19:58
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-25 03:10:41
合計ジャッジ時間 1,062 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

s, n1, n2 = map(str, input().split())
s = list(s)
n1, n2 = int(n1), int(n2)
if n1 == n2:
	s.pop(n1)
	print(''.join(s))
else:
	s[n1] = ''
	s[n2] = ''
	print(''.join(s))
0