HDU 1173(技巧题)
来源:互联网 发布:python格式化毫秒数 编辑:程序博客网 时间:2024/06/05 02:47
#include <stdio.h>#include <string.h>#include <algorithm>#include <iostream>using namespace std;const int maxn = 1e6 + 5;double x[maxn], y[maxn];int main(){ int t; while(cin>>t && t) { for(int i = 1; i <= t; i++) cin>>x[i]>>y[i]; sort(x + 1, x + t + 1); sort(y + 1, y + t + 1); printf("%.2lf %.2lf\n", x[t / 2 + 1], y[t / 2 +1]); //寻找中位数即可 } return 0;}
0 0
- HDU 1173(技巧题)
- hdu 1046 技巧题
- HDU-1124(数学技巧)
- hdu 2586的技巧
- HDU 5301 - Buildings(技巧)
- hdu 输出技巧 2099
- hdu 5288 思维技巧
- HDU 5671:Matrix【技巧】
- HDU 2186 取整小技巧
- hdu 1143 技巧
- hdu 6215(技巧)
- HDU 1196 Lowest Bit(基础题,有个小技巧)
- hdu 5675 && BestCoder Round #82 ztr loves math(技巧题)
- HDU-1215(数学技巧题目)
- HDU 1395 数论小技巧
- hdu 4550 一些小技巧
- hdu 5288 (小技巧)
- HDU 2674-- N!Again【技巧】
- 关于#define
- The Castle
- 315. Count of Smaller Numbers After Self BST
- Couldn't resolve host 'mirrorlist.centos.org
- 脑洞君来了,Google 2016科学挑战赛即将举行
- HDU 1173(技巧题)
- MFC入门-MCI简单音乐播放器实现
- 玩玩人脸识别
- Netdata Linux下性能实时监测工具
- 条款18:避免使用vector<bool>
- 可能忽略的Java基础知识-小心使用synchronized和volatile
- Win10预览版开始支持Linux命令行
- NYOJ 675 Sinking Ship
- 从原理上搞定编码--Base64编码