三足鼎立 HDU-2552【关于tan的数论】

xiaoxiao2021-02-28  65

题意:arctan(1/s) = arctan(1/u)+arctan(1/v) ,已知s,u,求v*u-s*u-s*v 的值。

错误思路:用反三角去做。结果wa了,应该是精度问题吧。 正确思路:

#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(void) { int t; cin >> t; while(t--) { double s,u; cin >>s >>u; cout << "1" << endl; } }
转载请注明原文地址: https://www.6miu.com/read-78244.html

最新回复(0)