結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー ibukitiibukiti
提出日時 2021-10-29 23:13:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 893 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 58,828 KB
最終ジャッジ日時 2024-04-16 15:50:45
合計ジャッジ時間 20,272 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,624 KB
testcase_01 AC 29 ms
10,496 KB
testcase_02 AC 29 ms
10,496 KB
testcase_03 AC 29 ms
10,624 KB
testcase_04 AC 30 ms
10,496 KB
testcase_05 AC 30 ms
10,496 KB
testcase_06 AC 30 ms
10,496 KB
testcase_07 AC 30 ms
10,624 KB
testcase_08 AC 32 ms
10,624 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 AC 29 ms
10,496 KB
testcase_11 AC 31 ms
10,624 KB
testcase_12 AC 30 ms
10,624 KB
testcase_13 AC 30 ms
10,496 KB
testcase_14 AC 31 ms
10,752 KB
testcase_15 AC 30 ms
10,496 KB
testcase_16 AC 360 ms
35,300 KB
testcase_17 AC 761 ms
55,888 KB
testcase_18 AC 599 ms
45,292 KB
testcase_19 AC 193 ms
24,508 KB
testcase_20 AC 207 ms
25,972 KB
testcase_21 AC 803 ms
58,704 KB
testcase_22 AC 887 ms
58,828 KB
testcase_23 AC 797 ms
58,704 KB
testcase_24 AC 893 ms
58,664 KB
testcase_25 AC 885 ms
58,696 KB
testcase_26 AC 813 ms
58,828 KB
testcase_27 AC 815 ms
58,668 KB
testcase_28 AC 869 ms
58,700 KB
testcase_29 AC 809 ms
58,820 KB
testcase_30 AC 816 ms
58,796 KB
testcase_31 AC 892 ms
58,700 KB
testcase_32 AC 402 ms
52,144 KB
testcase_33 AC 406 ms
52,296 KB
testcase_34 AC 429 ms
52,428 KB
testcase_35 AC 421 ms
52,300 KB
testcase_36 AC 30 ms
10,496 KB
testcase_37 AC 30 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
tmp=[]
s=["A"]*n
for i in range(n):
    tmp.append([a[i]-b[i],i])
tmp.sort()
for j in range(n-k):
    s[tmp[j][1]]="B"
print("".join(s))
0