結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
yuma25689
|
| 提出日時 | 2016-01-02 22:58:46 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 5,000 ms |
| + 553µs | |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2026-09-25 17:28:25 |
| 合計ジャッジ時間 | 2,455 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
boxWidth=int(input()) blockCount=int(input()) blockWidthes=list(map(int,input().split())) # 昇順ソート blockWidthes.sort(); maxCount = 0 currentWidth = 0 for width in blockWidthes: currentWidth += width if boxWidth < currentWidth: break maxCount += 1 print( maxCount )
yuma25689