結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,496 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 32 ms
10,624 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 29 ms
10,496 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 30 ms
10,624 KB
testcase_07 AC 31 ms
10,752 KB
testcase_08 AC 29 ms
10,624 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 AC 30 ms
10,752 KB
testcase_11 AC 30 ms
10,752 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 274 ms
33,620 KB
testcase_17 AC 558 ms
53,544 KB
testcase_18 AC 474 ms
42,680 KB
testcase_19 AC 159 ms
23,604 KB
testcase_20 AC 170 ms
24,976 KB
testcase_21 AC 598 ms
54,756 KB
testcase_22 AC 664 ms
55,016 KB
testcase_23 AC 585 ms
55,020 KB
testcase_24 AC 655 ms
54,884 KB
testcase_25 AC 673 ms
54,764 KB
testcase_26 AC 638 ms
54,760 KB
testcase_27 AC 615 ms
54,756 KB
testcase_28 AC 647 ms
55,012 KB
testcase_29 AC 604 ms
55,140 KB
testcase_30 AC 604 ms
54,768 KB
testcase_31 AC 691 ms
54,888 KB
testcase_32 AC 315 ms
48,620 KB
testcase_33 AC 315 ms
48,504 KB
testcase_34 AC 330 ms
48,488 KB
testcase_35 AC 328 ms
48,840 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=list(map(int,input().split()))
b=list(map(int,input().split()))
c=[(b[i]-a[i],i) for i in range(n)]
c.sort()
c.reverse()
ans=list('A'*n)
for i in range(n-k):
  ans[c[i][1]]='B'
print(''.join(ans))
0