結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-11 19:03:44 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 5,000 ms |
| + 835µs | |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 81,448 KB |
| 実行使用メモリ | 82,604 KB |
| 最終ジャッジ日時 | 2026-07-18 02:39:50 |
| 合計ジャッジ時間 | 3,987 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
#coding: utf-8 ##yuki_5 l=int(raw_input()) n=int(raw_input()) w=map(int,raw_input().split()) w.sort() res=0 count=0 for i in xrange(n): if res+w[i]<=l: res+=w[i] count+=1 else: break print count