結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー mrngmrng
提出日時 2021-11-21 15:31:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 502 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 1,862 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 141,168 KB
最終ジャッジ日時 2023-09-05 00:48:53
合計ジャッジ時間 18,984 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,420 KB
testcase_01 AC 75 ms
71,464 KB
testcase_02 AC 75 ms
71,316 KB
testcase_03 AC 77 ms
71,316 KB
testcase_04 AC 75 ms
71,220 KB
testcase_05 AC 75 ms
71,440 KB
testcase_06 AC 74 ms
71,376 KB
testcase_07 AC 75 ms
71,076 KB
testcase_08 AC 76 ms
71,416 KB
testcase_09 AC 75 ms
71,076 KB
testcase_10 AC 74 ms
71,340 KB
testcase_11 AC 80 ms
75,852 KB
testcase_12 AC 76 ms
71,308 KB
testcase_13 AC 79 ms
75,656 KB
testcase_14 AC 78 ms
75,496 KB
testcase_15 AC 77 ms
71,460 KB
testcase_16 AC 271 ms
107,840 KB
testcase_17 AC 451 ms
140,880 KB
testcase_18 AC 312 ms
116,868 KB
testcase_19 AC 165 ms
94,572 KB
testcase_20 AC 174 ms
96,620 KB
testcase_21 AC 502 ms
140,952 KB
testcase_22 AC 465 ms
140,888 KB
testcase_23 AC 501 ms
140,812 KB
testcase_24 AC 473 ms
140,940 KB
testcase_25 AC 469 ms
140,884 KB
testcase_26 AC 483 ms
140,832 KB
testcase_27 AC 479 ms
140,852 KB
testcase_28 AC 466 ms
140,968 KB
testcase_29 AC 484 ms
141,080 KB
testcase_30 AC 490 ms
141,168 KB
testcase_31 AC 460 ms
140,716 KB
testcase_32 AC 291 ms
141,104 KB
testcase_33 AC 287 ms
140,940 KB
testcase_34 AC 303 ms
141,100 KB
testcase_35 AC 311 ms
141,156 KB
testcase_36 AC 74 ms
71,464 KB
testcase_37 AC 77 ms
71,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
choice = [1]*n
d = [[a[i]-b[i],i] for i in range(n)]
from operator import itemgetter
d.sort(key=itemgetter(0),reverse=True)
for i in range(k):
	choice[d[i][1]] = 0
print(''.join([chr(ord('A')+i) for i in choice]))
0