結果
問題 | No.2424 Josouzai |
ユーザー |
|
提出日時 | 2023-08-25 18:48:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 208 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 32,636 KB |
最終ジャッジ日時 | 2024-12-24 04:45:04 |
合計ジャッジ時間 | 5,536 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
lands_cnt, drugs_cnt = map(int,input().split())lands_list = [*map(int,input().split())]sorted_lands_list =sorted(lands_list)withered_lands_cnt = 0for i in sorted_lands_list:if drugs_cnt >= i:drugs_cnt -= iwithered_lands_cnt += 1print(withered_lands_cnt, drugs_cnt)