首页 > 其他 > 详细

HDU 2105: The Center of Gravity

时间:2017-08-06 16:49:15      阅读:166      评论:0      收藏:0      [点我收藏+]

The Center of Gravity

///@author Sycamore, ZJNU;
///@date 8/4/2017
#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	int t;
	while (cin >> t&&t)
		while (t--)
		{
			double a, b, c, d, e, f;
			cin >> a >> b >> c >> d >> e >> f;
			cout << fixed << setprecision(1) << (a + c + e) / 3 << ‘ ‘ << fixed << setprecision(1) << (b + d + f) / 3 << ‘\n‘;
		}
	return 0;
} 

HDU 2105: The Center of Gravity

原文:http://www.cnblogs.com/zjnu/p/7295032.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!