結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2021-12-01 01:16:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 533 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 52,456 KB
最終ジャッジ日時 2023-09-16 23:53:32
合計ジャッジ時間 17,730 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,932 KB
testcase_01 AC 15 ms
7,860 KB
testcase_02 AC 15 ms
7,800 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 AC 15 ms
7,876 KB
testcase_05 AC 16 ms
7,860 KB
testcase_06 AC 15 ms
7,936 KB
testcase_07 AC 15 ms
7,852 KB
testcase_08 AC 15 ms
7,844 KB
testcase_09 AC 16 ms
7,876 KB
testcase_10 AC 15 ms
7,776 KB
testcase_11 AC 16 ms
7,964 KB
testcase_12 AC 16 ms
7,856 KB
testcase_13 AC 16 ms
8,276 KB
testcase_14 AC 17 ms
8,296 KB
testcase_15 AC 16 ms
7,804 KB
testcase_16 AC 241 ms
31,028 KB
testcase_17 AC 479 ms
51,428 KB
testcase_18 AC 306 ms
40,204 KB
testcase_19 AC 126 ms
20,944 KB
testcase_20 AC 154 ms
22,952 KB
testcase_21 AC 524 ms
52,300 KB
testcase_22 AC 449 ms
52,268 KB
testcase_23 AC 533 ms
52,404 KB
testcase_24 AC 471 ms
52,372 KB
testcase_25 AC 466 ms
52,300 KB
testcase_26 AC 515 ms
52,452 KB
testcase_27 AC 512 ms
52,408 KB
testcase_28 AC 478 ms
52,404 KB
testcase_29 AC 516 ms
52,456 KB
testcase_30 AC 520 ms
52,360 KB
testcase_31 AC 443 ms
52,404 KB
testcase_32 AC 270 ms
46,256 KB
testcase_33 AC 267 ms
46,316 KB
testcase_34 AC 282 ms
46,400 KB
testcase_35 AC 280 ms
46,080 KB
testcase_36 AC 15 ms
7,800 KB
testcase_37 AC 15 ms
7,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
C = [(a-b,i) for i,(a,b) in enumerate(zip(A,B))]
C.sort()
flg = ["B"]*N
for i in range(K):
    d,k = C[-1-i]
    flg[k] = 'A'
print(''.join(flg))
0