結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-11 18:04:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 82,372 KB |
| 実行使用メモリ | 62,072 KB |
| 最終ジャッジ日時 | 2024-11-25 06:00:27 |
| 合計ジャッジ時間 | 2,388 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)