結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
kokonotsu
|
| 提出日時 | 2021-07-19 02:01:13 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 414 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-03-30 19:25:54 |
| 合計ジャッジ時間 | 5,073 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 34 |
ソースコード
L = int(input())
N = int(input())
A = list(map(int, input().split()))
A.sort()
tmp = 0
ans = 0
for i in range(N):
tmp += A[i]
if tmp > L:
print(ans)
exit(0)
ans += 1
kokonotsu