結果

問題 No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
ユーザー U SU S
提出日時 2021-10-30 14:04:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 392 ms / 2,000 ms
コード長 648 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 142,896 KB
最終ジャッジ日時 2024-04-16 16:21:22
合計ジャッジ時間 13,882 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
61,440 KB
testcase_01 AC 49 ms
61,184 KB
testcase_02 AC 49 ms
61,120 KB
testcase_03 AC 50 ms
61,312 KB
testcase_04 AC 50 ms
61,184 KB
testcase_05 AC 52 ms
60,800 KB
testcase_06 AC 50 ms
61,184 KB
testcase_07 AC 51 ms
61,312 KB
testcase_08 AC 51 ms
60,800 KB
testcase_09 AC 51 ms
61,312 KB
testcase_10 AC 52 ms
60,800 KB
testcase_11 AC 52 ms
62,208 KB
testcase_12 AC 51 ms
61,824 KB
testcase_13 AC 53 ms
62,336 KB
testcase_14 AC 52 ms
62,848 KB
testcase_15 AC 50 ms
61,696 KB
testcase_16 AC 203 ms
96,020 KB
testcase_17 AC 370 ms
142,404 KB
testcase_18 AC 317 ms
126,360 KB
testcase_19 AC 139 ms
91,516 KB
testcase_20 AC 147 ms
91,392 KB
testcase_21 AC 384 ms
142,416 KB
testcase_22 AC 391 ms
142,540 KB
testcase_23 AC 392 ms
142,512 KB
testcase_24 AC 382 ms
142,544 KB
testcase_25 AC 384 ms
142,664 KB
testcase_26 AC 384 ms
142,384 KB
testcase_27 AC 386 ms
142,776 KB
testcase_28 AC 390 ms
142,644 KB
testcase_29 AC 388 ms
142,628 KB
testcase_30 AC 382 ms
142,508 KB
testcase_31 AC 380 ms
142,416 KB
testcase_32 AC 227 ms
142,848 KB
testcase_33 AC 231 ms
142,896 KB
testcase_34 AC 240 ms
142,768 KB
testcase_35 AC 241 ms
142,400 KB
testcase_36 AC 49 ms
61,184 KB
testcase_37 AC 50 ms
60,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#import sys
# input = sys.stdin.readline
def mp():return map(int,input().split())
def lmp():return list(map(int,input().split()))
def mps(A):return [tuple(map(int, input().split())) for _ in range(A)]
import math
import bisect
import heapq
from copy import deepcopy as dc
from itertools import accumulate
from collections import Counter, defaultdict, deque
def ceil(U,V):return (U+V-1)//V
def modf1(N,MOD):return (N-1)%MOD+1
inf = int(1e20)
mod = 998244353

n,K = mp()
a = lmp()
b = lmp()
d = [(i,a[i]-b[i]) for i in range(n)]
d.sort(key=lambda x:x[1], reverse=True)
ans = ["B"]*n
for i in range(K):
    ans[d[i][0]] = "A"
print("".join(ans))





0