結果
問題 |
No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
|
ユーザー |
👑 ![]() |
提出日時 | 2021-08-01 03:22:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 417 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 82,028 KB |
実行使用メモリ | 139,960 KB |
最終ジャッジ日時 | 2024-10-07 08:44:09 |
合計ジャッジ時間 | 13,765 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 |
ソースコード
import sys input=sys.stdin.readline write=sys.stdout.write N,K=map(int,input().split()) A=list(map(int,input().split())) B=list(map(int,input().split())) S=[0]*N U=sorted(range(N),key=lambda i:A[i]-B[i],reverse=True) for i in U[:K]: S[i]=1 write("".join(map(lambda x:'A' if x else 'B' ,S)))