码迷,mamicode.com
首页 > 其他好文 > 详细

HDU 2105: The Center of Gravity

时间:2017-08-06 17:09:01      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:bsp   clu   show   size   http   ++   sbo   while   namespace   

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

标签:bsp   clu   show   size   http   ++   sbo   while   namespace   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!