結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー pluto77pluto77
提出日時 2022-02-07 16:12:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 592 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 52,472 KB
最終ジャッジ日時 2023-09-03 20:29:34
合計ジャッジ時間 21,658 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,860 KB
testcase_01 AC 17 ms
7,836 KB
testcase_02 AC 16 ms
7,756 KB
testcase_03 AC 17 ms
7,720 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 16 ms
7,784 KB
testcase_06 AC 16 ms
7,768 KB
testcase_07 AC 17 ms
7,788 KB
testcase_08 AC 16 ms
7,784 KB
testcase_09 AC 15 ms
7,840 KB
testcase_10 AC 16 ms
7,904 KB
testcase_11 AC 17 ms
7,852 KB
testcase_12 AC 16 ms
7,844 KB
testcase_13 AC 17 ms
8,272 KB
testcase_14 AC 17 ms
8,240 KB
testcase_15 AC 17 ms
7,792 KB
testcase_16 AC 245 ms
30,860 KB
testcase_17 AC 516 ms
51,536 KB
testcase_18 AC 434 ms
40,352 KB
testcase_19 AC 131 ms
20,720 KB
testcase_20 AC 144 ms
22,556 KB
testcase_21 AC 532 ms
52,352 KB
testcase_22 AC 592 ms
52,188 KB
testcase_23 AC 512 ms
52,284 KB
testcase_24 AC 555 ms
52,240 KB
testcase_25 AC 576 ms
52,304 KB
testcase_26 AC 511 ms
52,276 KB
testcase_27 AC 530 ms
52,472 KB
testcase_28 AC 564 ms
52,360 KB
testcase_29 AC 519 ms
52,284 KB
testcase_30 AC 510 ms
52,276 KB
testcase_31 AC 586 ms
52,348 KB
testcase_32 AC 294 ms
46,156 KB
testcase_33 AC 294 ms
46,248 KB
testcase_34 AC 311 ms
46,208 KB
testcase_35 AC 312 ms
46,016 KB
testcase_36 AC 16 ms
7,744 KB
testcase_37 AC 16 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1724
n,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
l=[]
for i in range(n):
 l.append((a[i]-b[i],i))
l.sort()
res=['A']*n
for i in range(n-k):
 res[l[i][1]]='B'
print(''.join(res))
0