結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
aaaaaaaaaaaa
|
| 提出日時 | 2016-03-27 03:29:29 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 76,964 KB |
| 最終ジャッジ日時 | 2025-12-03 19:57:38 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
ソースコード
L = int(input())
N = int(input())
W = sorted(map(int, input().split()))
count = 0
sum = 0
for w in W:
sum += w
if sum > L:
break
count += 1
print(count)
aaaaaaaaaaaa