結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-11 18:04:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 193 bytes |
| 記録 | |
| コンパイル時間 | 389 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 61,184 KB |
| 最終ジャッジ日時 | 2026-05-19 16:15:15 |
| 合計ジャッジ時間 | 2,864 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
import bisect import itertools L = int(input()) input() W = [int(i) for i in input().split()] W_cumsum = list(itertools.accumulate(sorted(W))) ans = bisect.bisect_right(W_cumsum, L) print(ans)