結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー titiatitia
提出日時 2021-10-29 22:27:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 674 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 55,064 KB
最終ジャッジ日時 2024-04-16 15:19:17
合計ジャッジ時間 17,187 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,624 KB
testcase_01 AC 33 ms
10,624 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 31 ms
10,624 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 30 ms
10,624 KB
testcase_07 AC 31 ms
10,752 KB
testcase_08 AC 32 ms
10,752 KB
testcase_09 AC 32 ms
10,624 KB
testcase_10 AC 31 ms
10,624 KB
testcase_11 AC 31 ms
10,624 KB
testcase_12 AC 31 ms
10,624 KB
testcase_13 AC 32 ms
10,624 KB
testcase_14 AC 32 ms
10,752 KB
testcase_15 AC 31 ms
10,624 KB
testcase_16 AC 330 ms
33,360 KB
testcase_17 AC 619 ms
52,692 KB
testcase_18 AC 410 ms
42,888 KB
testcase_19 AC 181 ms
23,596 KB
testcase_20 AC 204 ms
25,096 KB
testcase_21 AC 671 ms
54,940 KB
testcase_22 AC 597 ms
54,936 KB
testcase_23 AC 671 ms
54,816 KB
testcase_24 AC 633 ms
54,808 KB
testcase_25 AC 609 ms
54,940 KB
testcase_26 AC 668 ms
55,064 KB
testcase_27 AC 659 ms
55,004 KB
testcase_28 AC 613 ms
54,904 KB
testcase_29 AC 674 ms
55,060 KB
testcase_30 AC 660 ms
54,940 KB
testcase_31 AC 596 ms
54,940 KB
testcase_32 AC 322 ms
48,796 KB
testcase_33 AC 320 ms
48,668 KB
testcase_34 AC 335 ms
48,792 KB
testcase_35 AC 334 ms
48,760 KB
testcase_36 AC 30 ms
10,624 KB
testcase_37 AC 31 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,K=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))

X=[(A[i]-B[i],i) for i in range(N)]
X.sort(reverse=True)

ANS=["B"]*N

for i in range(K):
    ANS[X[i][1]]="A"

print("".join(ANS))
    


0