結果

問題 No.5 数字のブロック
ユーザー arahi10arahi10
提出日時 2021-02-19 19:44:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 192 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 9,380 KB
最終ジャッジ日時 2023-10-14 22:10:12
合計ジャッジ時間 1,996 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,292 KB
testcase_01 AC 17 ms
8,260 KB
testcase_02 AC 17 ms
8,184 KB
testcase_03 AC 19 ms
8,856 KB
testcase_04 AC 17 ms
8,632 KB
testcase_05 AC 19 ms
9,036 KB
testcase_06 AC 18 ms
8,820 KB
testcase_07 AC 17 ms
8,660 KB
testcase_08 AC 18 ms
8,740 KB
testcase_09 AC 16 ms
8,424 KB
testcase_10 AC 19 ms
9,176 KB
testcase_11 AC 17 ms
8,524 KB
testcase_12 AC 18 ms
8,960 KB
testcase_13 AC 19 ms
9,012 KB
testcase_14 AC 15 ms
8,216 KB
testcase_15 AC 16 ms
8,188 KB
testcase_16 AC 21 ms
9,024 KB
testcase_17 AC 20 ms
9,316 KB
testcase_18 AC 19 ms
9,080 KB
testcase_19 AC 20 ms
9,380 KB
testcase_20 AC 16 ms
8,224 KB
testcase_21 AC 15 ms
8,304 KB
testcase_22 AC 15 ms
8,144 KB
testcase_23 AC 15 ms
8,084 KB
testcase_24 AC 15 ms
8,184 KB
testcase_25 AC 15 ms
8,300 KB
testcase_26 AC 16 ms
8,140 KB
testcase_27 AC 15 ms
8,320 KB
testcase_28 AC 15 ms
8,284 KB
testcase_29 AC 17 ms
8,688 KB
testcase_30 AC 16 ms
8,376 KB
testcase_31 AC 16 ms
8,152 KB
testcase_32 AC 15 ms
8,300 KB
testcase_33 AC 15 ms
8,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import accumulate
l,n,L=int(input()),int(input()),list(accumulate(sorted(list(map(int,input().split())))))
from bisect import bisect_left as bl,bisect_right as br
print(br(L,l))
0