結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-16 17:45:42 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 479 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2026-10-16 17:45:56 |
| 合計ジャッジ時間 | 3,089 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 20 |
ソースコード
a = int(input())
b = int(input())
C = sorted(map(int, input().split()))
d = 0
ans = 0
for x in C:
d += x
ans += 1
if d >= a:
break
print(ans)