UVA 11646 计算几何水题

#include <iostream>
#include <algorithm>
#include <cmath>
#define N 100005
using namespace std;

int main() {
	double a,b;
	int cnt =1;
	while(scanf("%lf : %lf",&a,&b)>0) {
		double k = b/a;
		double x = 200/((atan(b/a)/cos(atan(k)))+1);
		double y = k*x;
		printf("Case %d: %.10lf %.10lf\n",cnt++,x,y);
	}
	return 0;
}

 

上一篇:UVA 490 Rotating Sentences


下一篇:uva 11538