CF140F.New Year Snowflake

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

The first line contains two integers nn and kk ( 1<=n<=2000001<=n<=200000 , 0<=k<=100<=k<=10 ) — the number of the surviving snowflake crystals and the maximum number of melted crystals, correspondingly. Next nn lines contain the coordinates of the crystals that are left in the following form: " xix_{i} yiy_{i} ". The coordinates are integers and do not exceed 51085·10^{8} in absolute value. All given points are different.

输入格式

The first line contains an integer cc — the number of possible symmetry centers. Next cc lines should contain the centers' descriptions. Each symmetry center is described by a couple of coordinates " xx yy ", separated by a space. Print the coordinates with absolute error not exceeding 10610^{-6} . You are allowed to print the symmetry centers in any order. All printed points should be different. If there exist an infinite number of possible symmetry centers, print the single number "-1".

输出格式

输入输出样例

  • 输入#1

    4 0
    0 0
    0 1
    1 0
    1 1
    

    输出#1

    1
    0.5 0.5
    
  • 输入#2

    4 2
    0 0
    0 1
    1 0
    1 1
    

    输出#2

    5
    0.0 0.5
    0.5 0.0
    0.5 0.5
    0.5 1.0
    1.0 0.5
    
  • 输入#3

    4 4
    0 0
    0 1
    1 0
    1 1
    

    输出#3

    -1
    
首页