結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
Nagisa
|
| 提出日時 | 2015-10-11 23:22:24 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2024-07-21 07:01:01 |
| 合計ジャッジ時間 | 2,358 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 RE * 7 |
ソースコード
L = int(input())
N = int(input())
W = sorted(list(map(int, input().split())))
c = 0
while True:
L -= W[c]
c += 1
if L < 0:
c -= 1
break
elif L == 0:
break
print(c)
Nagisa