結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
Kiri8128
|
| 提出日時 | 2020-09-06 00:23:19 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 29 ms / 5,000 ms |
| + 822µs | |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 82,008 KB |
| 実行使用メモリ | 63,172 KB |
| 最終ジャッジ日時 | 2026-10-01 21:05:27 |
| 合計ジャッジ時間 | 3,184 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input())
N = int(input())
W = sorted([int(a) for a in input().split()])
s = 0
for i, w in enumerate(W):
s += w
if s > L:
print(i)
break
else:
print(N)
Kiri8128