結果
問題 |
No.1724 [Cherry 3rd Tune A] Lápiz labial de Sonia
|
ユーザー |
![]() |
提出日時 | 2021-11-21 15:31:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 416 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 759 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 141,716 KB |
最終ジャッジ日時 | 2024-06-22 21:59:51 |
合計ジャッジ時間 | 14,205 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 |
ソースコード
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]))