Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

SMAX - Maximum area

Given a convex polygon of N vertices. The vertices are numbered from 1 to N. Your task is to pick K vertices among these N vertices so that they form a polygon having the maximum possible area.

Input

  • The first line contains two integers N and K (3 ≤ K ≤ N ≤ 200).
  • The uth line in the next N lines contains two integers Xu and Yu which are the coordinates of the uth vertex. The vertices are given in clockwise order. The absolute values of all the coordinates do not exceed 105.

Output

  • The first line should contain the maximum area of a K-vertices polygon (rounding up to 2 decimal places).
  • The second line contains an increasing sequence of K numbers which are the indexes of the chosen vertices.

Example

Input
4 3
1 2
3 1
2 0
1 1

Output
1.50
1 2 3


Được gửi lên bởi:Lê Đôn Khuê
Ngày:2009-07-31
Thời gian chạy:0.200s-1s
Giới hạn mã nguồn:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Ngôn ngữ cho phép:Tất cả ngoại trừ: ADA95 ASM32 BASH BF C CSHARP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN GOSU HASK ICON ICK JS-RHINO LUA NEM NICE OCAML PAS-GPC PERL PERL6 PHP PIKE PRLG-swi PYTHON PYPY RUBY RUST SCM guile SCM qobi SED ST WHITESPACE
Nguồn bài:VNOI Marathon 2009
Round 5
Problem Setter: Lê Đôn Khuê

hide comments
2020-08-03 10:10:03
Em ngu như con chó vậy :(
Mãi mới biết làm :(
2020-08-03 05:14:21
VietCT thấy bài này ez vc =)))
2017-06-05 19:01:57
bài này làm kiểu gì vậy mấy anh
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.