結果

問題 No.292 芸名
ユーザー fmhrfmhr
提出日時 2015-10-23 22:29:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 822 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-09-30 05:00:59
合計ジャッジ時間 956 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,900 KB
testcase_01 AC 13 ms
7,816 KB
testcase_02 AC 12 ms
7,800 KB
testcase_03 AC 13 ms
7,880 KB
testcase_04 AC 12 ms
7,824 KB
testcase_05 AC 12 ms
7,844 KB
testcase_06 AC 14 ms
7,768 KB
testcase_07 AC 13 ms
7,784 KB
testcase_08 AC 13 ms
7,844 KB
testcase_09 AC 14 ms
7,944 KB
testcase_10 AC 13 ms
7,852 KB
testcase_11 AC 13 ms
7,884 KB
testcase_12 AC 14 ms
7,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

S, t, u = input().split()
t = int(t)
u = int(u)
S=list(S)
S[t]="1"
S[u]="1"
S.remove("1")
if t!=u:
    S.remove("1")
print(''.join(S))
0