結果
| 問題 | No.2424 Josouzai |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-21 00:00:13 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 100 ms / 2,000 ms |
| + 165µs | |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 33,628 KB |
| 最終ジャッジ日時 | 2026-10-15 01:50:04 |
| 合計ジャッジ時間 | 4,954 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
lands, drugs = map(int, input().split())
lands_lst = sorted(map(int, input().split()))
withered_lands = 0
for L in lands_lst:
if drugs >= L:
drugs -= L
else:
break
withered_lands += 1
print(withered_lands, drugs)