zoukankan      html  css  js  c++  java
  • bzoj1121[POI2008]激光发射器SZK

    Description

    多边形相邻边垂直,边长为整数,边平行坐标轴。 要在多边形的点上放一些激光发射器和接收器。 满足下列要求: 1发射器和接收器不能放置在同一点; 2发射器发出激光可以沿壁反射,最终到达一个接收器; 3发射器只能沿角平分线发射激光。 求:最多可放置多少对发射器和接收器? 点数4<=n<=100000

    Input

    第一行给出一个数字N,代表有多少个点. 下面N行,用来描述点的坐标.其值在[-1000000,1000000]

    Output

    最多可放置多少对发射器和接收器

    Sample Input

    10
    1 1
    3 1
    3 -2
    -3 -2
    -3 0
    -1 0
    -1 -1
    2 -1
    2 0
    1 0


    Sample Output

    5

    斯巴达……

    http://blog.csdn.net/ndsffx501ccy/article/details/27375249

    我当时就跪下了

    #include<cstdio>
    int main()
    {
    int n;
    scanf("%d",&n);
    printf("%d",n/2);
    }


    ——by zhber,转载请注明来源
  • 相关阅读:
    asp.net读取/导入project(mpp)文件
    hdu2103
    hdu2100(大数加)
    hdu1406
    hdu1249
    hdu1038
    hdu2565
    hdu1203
    zoj3501
    hdu2102
  • 原文地址:https://www.cnblogs.com/zhber/p/4036099.html
Copyright © 2011-2022 走看看