結果
| 問題 |
No.5 数字のブロック
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-11 18:47:52 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 203 bytes |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 7,040 KB |
| 最終ジャッジ日時 | 2024-09-22 00:53:39 |
| 合計ジャッジ時間 | 1,536 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 14 |
ソースコード
#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<l: res+=w[i] count+=1 else: break print count-1