結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-08 20:07:49 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 183 bytes |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 7,424 KB |
| 最終ジャッジ日時 | 2024-09-24 14:56:15 |
| 合計ジャッジ時間 | 1,804 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
#coding:utf-8 L=input() N=input() W_str=raw_input().split() W=[int(i) for i in W_str] s=[] cnt=0 for i in sorted(W): cnt+=i if cnt < L: s.append(i) else: break print len(s)
a_ten