結果
問題 | No.5 数字のブロック |
ユーザー |
![]() |
提出日時 | 2020-12-09 21:17:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 255 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 44,832 KB |
最終ジャッジ日時 | 2024-09-19 04:02:44 |
合計ジャッジ時間 | 20,362 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 34 |
ソースコード
import sysimport numpy as npreadline = sys.stdin.readlinel = int(input())n = int(input())w = np.array(readline().split(), dtype=np.int64)w.sort()s = np.cumsum(w)ans = np.searchsorted(s, l, side='right') + 1print(ans)