結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー sangonanasangonana
提出日時 2021-10-29 21:34:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 721 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 55,120 KB
最終ジャッジ日時 2024-04-16 14:16:50
合計ジャッジ時間 17,037 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,880 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 29 ms
10,752 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 30 ms
10,880 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 30 ms
10,880 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 AC 30 ms
10,752 KB
testcase_10 AC 29 ms
10,752 KB
testcase_11 AC 30 ms
10,880 KB
testcase_12 AC 30 ms
10,752 KB
testcase_13 AC 30 ms
10,752 KB
testcase_14 AC 31 ms
10,880 KB
testcase_15 AC 30 ms
10,752 KB
testcase_16 AC 306 ms
33,568 KB
testcase_17 AC 574 ms
52,940 KB
testcase_18 AC 488 ms
43,008 KB
testcase_19 AC 163 ms
23,484 KB
testcase_20 AC 183 ms
25,076 KB
testcase_21 AC 622 ms
54,988 KB
testcase_22 AC 698 ms
54,988 KB
testcase_23 AC 609 ms
54,992 KB
testcase_24 AC 657 ms
54,984 KB
testcase_25 AC 671 ms
55,120 KB
testcase_26 AC 616 ms
55,116 KB
testcase_27 AC 606 ms
54,992 KB
testcase_28 AC 652 ms
55,048 KB
testcase_29 AC 610 ms
54,984 KB
testcase_30 AC 605 ms
54,992 KB
testcase_31 AC 721 ms
54,984 KB
testcase_32 AC 333 ms
48,944 KB
testcase_33 AC 338 ms
48,716 KB
testcase_34 AC 356 ms
48,716 KB
testcase_35 AC 342 ms
48,716 KB
testcase_36 AC 29 ms
10,880 KB
testcase_37 AC 29 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
lis=[]
for i in range(n):
	lis.append((a[i]-b[i],i))
lis.sort()
ans=["A"]*n
for i in range(n-k):
	ans[lis[i][1]]="B"

print("".join(ans))
0