結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
yuma25689
|
| 提出日時 | 2016-01-02 22:58:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2024-11-18 08:02:09 |
| 合計ジャッジ時間 | 1,710 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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