結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー kohei2019kohei2019
提出日時 2023-06-09 16:09:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 732 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 681 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 146,584 KB
最終ジャッジ日時 2023-08-30 09:35:29
合計ジャッジ時間 25,798 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,376 KB
testcase_01 AC 79 ms
71,576 KB
testcase_02 AC 83 ms
71,344 KB
testcase_03 AC 79 ms
71,348 KB
testcase_04 AC 80 ms
71,308 KB
testcase_05 AC 83 ms
71,384 KB
testcase_06 AC 81 ms
71,220 KB
testcase_07 AC 77 ms
71,252 KB
testcase_08 AC 84 ms
71,372 KB
testcase_09 AC 81 ms
71,308 KB
testcase_10 AC 80 ms
71,260 KB
testcase_11 AC 83 ms
75,844 KB
testcase_12 AC 78 ms
71,164 KB
testcase_13 AC 81 ms
75,728 KB
testcase_14 AC 83 ms
75,776 KB
testcase_15 AC 83 ms
71,540 KB
testcase_16 AC 391 ms
104,436 KB
testcase_17 AC 732 ms
146,584 KB
testcase_18 AC 487 ms
115,628 KB
testcase_19 AC 234 ms
93,780 KB
testcase_20 AC 249 ms
95,600 KB
testcase_21 AC 679 ms
142,284 KB
testcase_22 AC 670 ms
142,144 KB
testcase_23 AC 669 ms
142,072 KB
testcase_24 AC 659 ms
142,132 KB
testcase_25 AC 705 ms
141,636 KB
testcase_26 AC 692 ms
142,212 KB
testcase_27 AC 671 ms
142,304 KB
testcase_28 AC 680 ms
142,188 KB
testcase_29 AC 679 ms
142,300 KB
testcase_30 AC 674 ms
142,152 KB
testcase_31 AC 671 ms
142,160 KB
testcase_32 AC 401 ms
142,244 KB
testcase_33 AC 400 ms
142,208 KB
testcase_34 AC 413 ms
142,232 KB
testcase_35 AC 411 ms
142,180 KB
testcase_36 AC 73 ms
71,380 KB
testcase_37 AC 74 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
lsA = list(map(int, input().split()))
lsB = list(map(int, input().split()))
lsALL = []
for i in range(N):
    lsALL.append((lsA[i]-lsB[i],i))
lsALL.sort(reverse=True)
ansls = ['B' for _ in range(N)]
for i in range(K):
    ansls[lsALL[i][1]] = 'A'
print(*ansls,sep='')
0