結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-13 08:18:12 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 148 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 95,952 KB |
| 実行使用メモリ | 83,712 KB |
| 最終ジャッジ日時 | 2026-09-04 12:55:01 |
| 合計ジャッジ時間 | 4,375 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
L = int(input())
N = int(input())
W = list(map(int,input().split()))
W.sort()
ans=0
for w in W:
if L>w:
L-=w
ans+=1
print(ans)
もぐら 3.0