結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
convexineq
|
| 提出日時 | 2020-11-22 23:44:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| コンパイル時間 | 308 ms |
| コンパイル使用メモリ | 82,580 KB |
| 実行使用メモリ | 61,920 KB |
| 最終ジャッジ日時 | 2024-07-23 16:49:01 |
| 合計ジャッジ時間 | 2,890 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
import sys
readline = sys.stdin.readline
read = sys.stdin.read
w,_,*a = map(int,read().split())
a.sort()
d = ans = 0
for i in a:
if d+i < w:
d += i
ans += 1
print(ans)
convexineq