結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
nsore38088715
|
| 提出日時 | 2019-11-21 22:42:39 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 30 ms / 5,000 ms |
| + 125µs | |
| コード長 | 191 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 61,568 KB |
| 最終ジャッジ日時 | 2026-09-13 16:26:58 |
| 合計ジャッジ時間 | 3,179 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input().strip())
N = int(input().strip())
W = [int(i) for i in input().strip().split(' ')]
W = sorted(W)
s = 0
c = 0
for i in W:
s += i
if s > L:
break
c += 1
print(c)
nsore38088715