結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
|
| 提出日時 | 2024-12-18 16:19:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2024-12-18 16:19:11 |
| 合計ジャッジ時間 | 2,959 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 14 |
ソースコード
inp1 = input()
inp_dust = input()
inp2 = input().split()
seq= []
for s in inp2:
seq.append(int(s))
seq = sorted(seq)
num = int(inp1)
box = 0
count = 0
for s in seq:
if box >= num:
break
box = box + s
count = count + 1
count = count -1
print(count)