博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
1007acm 感想
阅读量:7081 次
发布时间:2019-06-28

本文共 718 字,大约阅读时间需要 2 分钟。

代码是抄的 代码在 discuss里面

注释是思路,
简单的讲就是先把近的点放在一起然后看周围6个点的距离最近的值

#include 
using namespace std;const int MAX = 100000000;//单纯的点和x+y的值struct node{ double x; double y; double s;};//快排bool comp(node a,node b){ return a.s < b.s;}int main(){ int i, j, k, u, n, m, cnt; struct node ar[100010];//当sa[1000010]会报错 seg... core错误 double sa[100010], a, b, c, min; while(scanf("%d",&n)!=EOF){ if(n == 0) break; //cout<<"hello"<
sa[cnt]) { min = sa[cnt]; } cnt++; } } printf("%.2lf\n",min/2.0); } return 0;}

转载于:https://www.cnblogs.com/eat-too-much/p/6951170.html

你可能感兴趣的文章
SpringMVC Controller 返回值的可选类型
查看>>
kbmmw 5.03 发布
查看>>
iOS - App 与外设间的通信方式
查看>>
13.7. Device Management
查看>>
144.2. tcpdump - A powerful tool for network monitoring and data acquisition
查看>>
查看ecshop广告位对应的广告详细信息
查看>>
Selenium2+python自动化51-unittest简介
查看>>
★路由递归查询方法及相关图示【转载】
查看>>
SAP 开源 SCA 工具,扫描软件包依赖漏洞
查看>>
在MATLAB下调试Caffe
查看>>
大图做帧动画卡顿?不存在的!—— 优化帧动画之SurfaceView 滑动窗口式帧复用...
查看>>
Android 8.0 新特性 之通知、自适应图标
查看>>
57 Insert Interval
查看>>
[译] 2018 PHP 应用程序安全设计指北
查看>>
云计算基础之什么是云计算?
查看>>
10个实用的Django技巧和建议
查看>>
带你学C带你飞!
查看>>
html_03 | HTML——③ HTML 表单详解
查看>>
小猿圈解决vue权限问题的方案
查看>>
Express.js 解析 Post 数据类型的正确姿势
查看>>