結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー 河野竜也河野竜也
提出日時 2022-06-22 20:09:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 554 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 56,000 KB
最終ジャッジ日時 2024-04-23 23:57:48
合計ジャッジ時間 15,782 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,624 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 AC 26 ms
10,624 KB
testcase_04 AC 28 ms
10,624 KB
testcase_05 AC 29 ms
10,624 KB
testcase_06 AC 27 ms
10,752 KB
testcase_07 AC 26 ms
10,624 KB
testcase_08 AC 26 ms
10,624 KB
testcase_09 AC 27 ms
10,624 KB
testcase_10 AC 26 ms
10,752 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 27 ms
10,624 KB
testcase_13 AC 28 ms
10,624 KB
testcase_14 AC 28 ms
10,752 KB
testcase_15 AC 26 ms
10,624 KB
testcase_16 AC 260 ms
33,868 KB
testcase_17 AC 504 ms
53,376 KB
testcase_18 AC 319 ms
43,312 KB
testcase_19 AC 132 ms
23,620 KB
testcase_20 AC 155 ms
25,328 KB
testcase_21 AC 550 ms
55,776 KB
testcase_22 AC 484 ms
55,740 KB
testcase_23 AC 547 ms
55,748 KB
testcase_24 AC 495 ms
55,772 KB
testcase_25 AC 479 ms
55,900 KB
testcase_26 AC 554 ms
55,900 KB
testcase_27 AC 540 ms
55,776 KB
testcase_28 AC 495 ms
56,000 KB
testcase_29 AC 530 ms
55,736 KB
testcase_30 AC 524 ms
55,740 KB
testcase_31 AC 469 ms
55,900 KB
testcase_32 AC 289 ms
49,632 KB
testcase_33 AC 279 ms
49,500 KB
testcase_34 AC 293 ms
49,504 KB
testcase_35 AC 292 ms
49,628 KB
testcase_36 AC 26 ms
10,752 KB
testcase_37 AC 27 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
l=[(a[i]-b[i],i) for i in range(n)]
ans=["B"]*n
l.sort(reverse=True)
for p in range(k):
  _,i=l[p]
  ans[i]="A"
print(''.join(ans))
0