【題解】AtCoder Panasonic 2020 C – Sqrt Inequality

【題目敘述】https://atcoder.jp/contests/panasonic2020/tasks/panasonic2020_c

#include <bits/stdc++.h>
using namespace std;
 
const long double eps = 1e-14;
long double a, b, c;
 
int main(){
    cin >> a >> b >> c;
    if (sqrt(a)+sqrt(b)+eps < sqrt(c)) cout << "Yes\n";
    else cout << "No\n";
}
分享本文 Share with friends