結果

問題 No.5 数字のブロック
ユーザー OhnumaOhnuma
提出日時 2020-04-08 23:20:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 436 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 30,672 KB
最終ジャッジ日時 2023-09-26 11:09:44
合計ジャッジ時間 9,475 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
29,544 KB
testcase_01 AC 132 ms
29,560 KB
testcase_02 WA -
testcase_03 AC 140 ms
30,284 KB
testcase_04 AC 141 ms
30,116 KB
testcase_05 WA -
testcase_06 AC 135 ms
30,240 KB
testcase_07 AC 135 ms
30,196 KB
testcase_08 AC 137 ms
30,208 KB
testcase_09 AC 138 ms
29,652 KB
testcase_10 AC 139 ms
30,464 KB
testcase_11 AC 137 ms
29,912 KB
testcase_12 AC 139 ms
30,256 KB
testcase_13 AC 139 ms
30,396 KB
testcase_14 AC 133 ms
29,440 KB
testcase_15 WA -
testcase_16 AC 137 ms
30,496 KB
testcase_17 AC 138 ms
30,672 KB
testcase_18 AC 135 ms
30,632 KB
testcase_19 AC 137 ms
30,652 KB
testcase_20 AC 136 ms
29,560 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 133 ms
29,448 KB
testcase_24 AC 131 ms
29,556 KB
testcase_25 AC 130 ms
29,700 KB
testcase_26 AC 132 ms
29,712 KB
testcase_27 AC 133 ms
29,744 KB
testcase_28 AC 133 ms
29,428 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 131 ms
29,544 KB
testcase_32 AC 129 ms
29,660 KB
testcase_33 AC 130 ms
29,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
import numpy as np
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
cumsum = np.cumsum(w)
print(bisect.bisect_left(cumsum, l))
0