結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-10-29 21:59:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 809 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 82,356 KB
実行使用メモリ 141,804 KB
最終ジャッジ日時 2024-04-16 14:52:24
合計ジャッジ時間 19,489 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,840 KB
testcase_01 AC 36 ms
51,840 KB
testcase_02 AC 36 ms
51,840 KB
testcase_03 AC 38 ms
52,352 KB
testcase_04 AC 37 ms
51,840 KB
testcase_05 AC 37 ms
51,712 KB
testcase_06 AC 38 ms
51,712 KB
testcase_07 AC 39 ms
52,480 KB
testcase_08 AC 39 ms
52,096 KB
testcase_09 AC 39 ms
51,840 KB
testcase_10 AC 38 ms
52,096 KB
testcase_11 AC 44 ms
59,008 KB
testcase_12 AC 39 ms
52,864 KB
testcase_13 AC 43 ms
59,136 KB
testcase_14 AC 44 ms
59,136 KB
testcase_15 AC 41 ms
52,608 KB
testcase_16 AC 390 ms
108,256 KB
testcase_17 AC 748 ms
121,952 KB
testcase_18 AC 545 ms
124,524 KB
testcase_19 AC 218 ms
93,896 KB
testcase_20 AC 245 ms
95,488 KB
testcase_21 AC 803 ms
141,492 KB
testcase_22 AC 769 ms
141,428 KB
testcase_23 AC 799 ms
141,616 KB
testcase_24 AC 774 ms
141,548 KB
testcase_25 AC 773 ms
141,764 KB
testcase_26 AC 792 ms
141,416 KB
testcase_27 AC 807 ms
141,300 KB
testcase_28 AC 802 ms
141,804 KB
testcase_29 AC 802 ms
141,400 KB
testcase_30 AC 809 ms
141,732 KB
testcase_31 AC 757 ms
141,040 KB
testcase_32 AC 384 ms
141,800 KB
testcase_33 AC 385 ms
141,608 KB
testcase_34 AC 409 ms
141,548 KB
testcase_35 AC 408 ms
141,724 KB
testcase_36 AC 37 ms
51,712 KB
testcase_37 AC 37 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
ans = ["B"]*n
L = [[a-b,i] for i,(a,b) in enumerate(zip(A,B))]
L.sort(reverse=True)
for i in range(k):
    ans[L[i][1]] = "A"
print(*ans,sep="")
0