結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー H3PO4H3PO4
提出日時 2021-10-29 21:37:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 648 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 66,044 KB
最終ジャッジ日時 2024-04-16 14:20:29
合計ジャッジ時間 16,503 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
10,624 KB
testcase_01 AC 34 ms
10,752 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 29 ms
10,752 KB
testcase_04 AC 30 ms
10,496 KB
testcase_05 AC 29 ms
10,624 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 AC 32 ms
10,624 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 AC 29 ms
10,624 KB
testcase_10 AC 31 ms
10,752 KB
testcase_11 AC 31 ms
10,880 KB
testcase_12 AC 30 ms
10,752 KB
testcase_13 AC 31 ms
10,752 KB
testcase_14 AC 30 ms
10,752 KB
testcase_15 AC 30 ms
10,624 KB
testcase_16 AC 331 ms
38,812 KB
testcase_17 AC 591 ms
62,640 KB
testcase_18 AC 403 ms
51,020 KB
testcase_19 AC 154 ms
26,640 KB
testcase_20 AC 195 ms
28,412 KB
testcase_21 AC 633 ms
65,784 KB
testcase_22 AC 592 ms
66,008 KB
testcase_23 AC 641 ms
65,792 KB
testcase_24 AC 599 ms
65,772 KB
testcase_25 AC 582 ms
66,044 KB
testcase_26 AC 642 ms
65,784 KB
testcase_27 AC 642 ms
65,788 KB
testcase_28 AC 595 ms
65,912 KB
testcase_29 AC 642 ms
66,040 KB
testcase_30 AC 648 ms
65,820 KB
testcase_31 AC 611 ms
65,780 KB
testcase_32 AC 327 ms
59,512 KB
testcase_33 AC 326 ms
59,776 KB
testcase_34 AC 341 ms
59,512 KB
testcase_35 AC 344 ms
59,620 KB
testcase_36 AC 30 ms
10,752 KB
testcase_37 AC 29 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
A = map(int, input().split())
B = map(int, input().split())
D = [(b - a, i) for i, (a, b) in enumerate(zip(A, B))]
D.sort()

ans = ['B'] * N
for x, i in D[:K]:
    ans[i] = 'A'
print(''.join(map(str, ans)))
0