http://codeforces.com/gym/101149/problem/K
题意:题目贼长,但其实是个脑筋急转弯。。。
题解:题目要求某图形面积。该图形只有一个自由度,就是起点与终点距离x。样例给出了x==1时的解S0,所以ans=x*x*S0
ac 代码:
#include<iostream> #include<stdio.h> #include<algorithm> #include<vector> using namespace std; typedef long long ll; int main(){ double x1,x2,x3,x4; cin>>x1>>x2>>x3>>x4; double t=(x1-x3)*(x1-x3)+(x2-x4)*(x2-x4); ; printf("%.10lf",t*0.916297857297023); }
转载于:https://www.cnblogs.com/SuuT/p/8547330.html
最后
以上就是超帅灰狼最近收集整理的关于Gym - 101149K Revenge of the Dragon 脑洞题,样例题的全部内容,更多相关Gym内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复