結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
m_yukihiro
|
| 提出日時 | 2015-04-26 12:15:18 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 77,476 KB |
| 最終ジャッジ日時 | 2025-12-03 14:47:00 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
ソースコード
L = input()
N = input()
W = map(int, raw_input().split())
W.sort()
for i in xrange(N):
L -= W[i]
if L < 0:
break
count += 1
print count
m_yukihiro