結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
|
| 提出日時 | 2016-10-28 13:21:47 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 5,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 7,168 KB |
| 最終ジャッジ日時 | 2024-11-18 10:24:22 |
| 合計ジャッジ時間 | 1,532 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
def func(L,N,W):
for i in xrange(N):
if L<W[i]:
print i
return
L-=W[i]
print N
L=int(raw_input())
N=int(raw_input())
W=map(int,raw_input().split())
W.sort()
func(L,N,W)