buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <iostream> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long f = a * a + b * b + c * c - 2 * (a * b + b * c + c * a); if (f > 0 && a + b > c) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long f = a * a + b * b + c * c - 2 * (a * b + b * c + c * a); if (f > 0 && a + b < c) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18]]
1
89
#include <algorithm> #include <iostream> #include <string.h> typedef long long ll; using namespace std; int main() { ll a, b, c, d, e; cin >> a >> b >> c; d = c - a - b; e = a * b; if (4 * e >= d * d) { cout << "No"; } else { cout << "Yes"; } }
#include <algorithm> #include <iostream> #include <string.h> typedef long long ll; using namespace std; int main() { ll a, b, c, d, e; cin >> a >> b >> c; d = c - a - b; e = a * b; if (4 * e >= d * d || d <= 0) { cout << "No"; } else { cout << "Yes"; } }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
81
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); long long a, b, c; cin >> a >> b >> c; long long l = 4 * a * b; long long r = (c - a - b); if (r < 0) { cout << "NO\n"; } else { r = r * r; if (l < r) { cout << "YES\n"; } els...
/*input 2 3 10 */ #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); long long a, b, c; cin >> a >> b >> c; long long l = 4 * a * b; long long r = (c - a - b); if (r < 0) { cout << "No\n"; } else { r = r * r; if (l < r) { cout <...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
114
def main(): a, b, c = map(int, input().split()) if 4 * a * b < (c - a - b) ** 2: print("Yes") else: print("No") if __name__ == "__main__": main()
def main(): a, b, c = map(int, input().split()) if a + b < c and 4 * a * b < (c - a - b) ** 2: print("Yes") else: print("No") if __name__ == "__main__": main()
[["+", 0, 57, 15, 679, 31, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 0, 14, 8, 196, 0, 57, 15, 679, 17, 355]]
5
64
#include <bits/stdc++.h> #include <cmath> #include <math.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; #define rep(i, n) \ ; ...
#include <bits/stdc++.h> #include <cmath> #include <math.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; #define rep(i, n) \ ; ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]]
1
274
#include <cmath> #include <iostream> using namespace std; int main(int argc, const char *argv[]) { long long a, b, c; cin >> a >> b >> c; long long d = (c - a - b); if (4 * a * b < d * d) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; }
#include <cmath> #include <iostream> using namespace std; int main(int argc, const char *argv[]) { long long a, b, c; cin >> a >> b >> c; long long d = (c - a - b); if (d >= 0 && 4 * a * b < d * d) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
85
#include <bits/stdc++.h> #define r1(i, n) for (int i = 0; i < n; i++) #define r2(i, n) for (int i = 1; i < n; i++) #define intc(n) \ int n; \ cin >> n; #define ll long long #define ll...
#include <bits/stdc++.h> #define r1(i, n) for (int i = 0; i < n; i++) #define r2(i, n) for (int i = 1; i < n; i++) #define intc(n) \ int n; \ cin >> n; #define ll long long #define ll...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
120
#include <bits/stdc++.h> using namespace std; using ll = unsigned long long; template <class T, class U> using Pa = pair<T, U>; template <class T> using vec = vector<T>; template <class T> using vvec = vector<vec<T>>; int main() { cin.tie(0); ios::sync_with_stdio(false); ll A, B, C; cin >> A >> B >> C; if (C...
#include <bits/stdc++.h> using namespace std; using ll = long long; template <class T, class U> using Pa = pair<T, U>; template <class T> using vec = vector<T>; template <class T> using vvec = vector<vec<T>>; int main() { cin.tie(0); ios::sync_with_stdio(false); ll A, B, C; cin >> A >> B >> C; if (C - A - B ...
[["-", 0, 30, 0, 360, 39, 77, 39, 86, 0, 87]]
1
149
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long k = c - a - b; if (k * k > 2 * a * b && k >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long k = c - a - b; if (k * k > 4 * a * b && k >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 51, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 31, 13]]
1
75
a,b,c = list(map(int , input().split())) x = c - a - b X = x ** 2 Y = a * b * 4 Z = X - Y if Z > 0: print("Yes") else: print("No")
a,b,c = list(map(int , input().split())) x = c - a - b X = x ** 2 Y = a * b * 4 Z = X - Y if Z > 0 and x > 0: print("Yes") else: print("No")
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]]
5
64
#include <bits/stdc++.h> using namespace std; int main() { long a, b, c; cin >> a >> b >> c; if (a + b > c) cout << "No" << endl; if (4 * a * b < (c - a - b) * (c - a - b)) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long a, b, c; cin >> a >> b >> c; if (a + b > c) cout << "No" << endl; else if (4 * a * b < (c - a - b) * (c - a - b)) cout << "Yes" << endl; else cout << "No" << endl; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
84
#include "bits/stdc++.h" // Begin Header {{{ #define all(x) (x).begin(), (x).end() #define rep(i, s, n) for (i64 i = (s), i##_limit = (n); i < i##_limit; ++i) #define repr(i, s, t) for (i64 i = (s), i##_limit = (t); i >= i##_limit; --i) #define VAR(type, ...) \ ...
#include "bits/stdc++.h" // Begin Header {{{ #define all(x) (x).begin(), (x).end() #define rep(i, s, n) for (i64 i = (s), i##_limit = (n); i < i##_limit; ++i) #define repr(i, s, t) for (i64 i = (s), i##_limit = (t); i >= i##_limit; --i) #define VAR(type, ...) \ ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
554
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<ll, ll>; using vi = vector<int>; using vvi = vector<vi>; int main() { ll a, b, c; cin >> a >> b >> c; bool ans; ll d = c - a - b; if (d < 0) ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<ll, ll>; using vi = vector<int>; using vvi = vector<vi>; int main() { ll a, b, c; cin >> a >> b >> c; bool ans; ll d = c - a - b; if (d <= 0) ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 140], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
138
#include <iostream> #include <math.h> using namespace std; int main() { unsigned long long a, b, c; cin >> a >> b >> c; unsigned long long k = c - a - b; if (k < 0) cout << "No" << endl; else if (k * k > 4 * a * b) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long k = c - a - b; if (k < 0) cout << "No" << endl; else if (k * k > 4 * a * b) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87]]
1
86
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, t; cin >> a >> b >> c; t = c - a - b; // cout << t << endl; if (t < 0) { cout << "Yes" << endl; } else if (4 * a * b < t * t) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, t; cin >> a >> b >> c; t = c - a - b; // cout << t << endl; if (t < 0) { cout << "No" << endl; } else if (4 * a * b < t * t) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
89
#include <stdio.h> int main(void) { long a, b, c; scanf("%ld", &a); scanf("%ld", &b); scanf("%ld", &c); if (4 * a * b < (c - a - b) * (c - a - b)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main(void) { long a, b, c; scanf("%ld", &a); scanf("%ld", &b); scanf("%ld", &c); if (a + b < c && 4 * a * b < (c - a - b) * (c - a - b)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["+", 15, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
94
# c require 'pp' a, b, c = gets.split.map(&:to_i) if a + b - c > 0 puts 'No' else puts ((a + b - c)**2) < (4*a*b) ? 'No' : 'Yes' end
# c require 'pp' a, b, c = gets.split.map(&:to_i) if a + b - c >= 0 puts 'No' else puts ((a + b - c)**2) > (4*a*b) ? 'Yes' : 'No' end
[["-", 36, 36, 0, 493, 0, 121, 15, 738, 17, 47], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 20], ["-", 0, 652, 3, 4, 0, 754, 15, 738, 17, 18], ["+", 0, 652, 3, 4, 0, 754, 15, 738, 17, 47], ["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6],...
4
62
import sys sys.setrecursionlimit(1 << 25) read = sys.stdin.readline def read_ints(): return list(map(int, read().split())) def read_a_int(): return int(read()) def read_tuple(H): ''' H is number of rows ''' ret = [] for _ in range(H): ret.append(tuple(map(int, read().split())))...
import sys sys.setrecursionlimit(1 << 25) read = sys.stdin.readline def read_ints(): return list(map(int, read().split())) def read_a_int(): return int(read()) def read_tuple(H): ''' H is number of rows ''' ret = [] for _ in range(H): ret.append(tuple(map(int, read().split())))...
[["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 31, 657, 31, 657, 31, 657, 31, 657, 31, 22]]
5
414
import math a, b, c = map(int, input().split()) ans = (a + b - c)**2 > 4 * a * b if a + b < c: print("Yes") elif ans: print("Yes") else: print("No")
import math a, b, c = map(int, input().split()) ans = (a + b - c)**2 > 4 * a * b if a + b > c: print("No") elif ans: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
67
a, b, c = map(int, input().split()) if a+b > c: print("No") else: d = a + b - c if d * d < 4 * a * b: print("No") else: print("Yes")
a, b, c = map(int, input().split()) if a+b > c: print("No") else: d = a + b - c if d * d <= 4 * a * b: print("No") else: print("Yes")
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]]
5
65
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #if __cplusplus >= 201103L #include <unordered_map> #include <uno...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #if __cplusplus >= 201103L #include <unordered_map> #include <uno...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
196
A, B, C = gets.split.map(&:to_i) D = C - A - B if D ** 2 > 4 * A * B puts 'Yes' else puts 'No' end
A, B, C = gets.split.map(&:to_i) D = C - A - B if D > 0 && D ** 2 > 4 * A * B puts 'Yes' else puts 'No' end
[["+", 0, 493, 0, 121, 15, 738, 31, 738, 17, 47], ["+", 0, 493, 0, 121, 15, 738, 31, 738, 12, 612], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 98], ["+", 0, 121, 15, 738, 12, 738, 31, 738, 31, 743]]
4
42
#include <cmath> #include <iostream> using namespace std; int main() { unsigned long a, b, c; unsigned long aa, bb, cc, ab2, ac2, bc2; cin >> a >> b >> c; long ans = c - a - b; if (ans < 0) { cout << "No" << endl; return 0; } ans = ans * ans - 4 * a * b; if (ans < 0) { cout << "No" << endl; ...
#include <cmath> #include <iostream> using namespace std; int main() { unsigned long a, b, c; unsigned long aa, bb, cc, ab2, ac2, bc2; cin >> a >> b >> c; long ans = c - a - b; if (ans < 0) { cout << "No" << endl; return 0; } ans = ans * ans - 4 * a * b; if (ans <= 0) { cout << "No" << endl;...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
114
#include <cmath> #include <iostream> using namespace std; int main(void) { unsigned long long a, b, c; cin >> a >> b >> c; if (c - a - b <= 0) cout << "No"; else if (4 * a * b < (c - a - b) * (c - a - b)) cout << "Yes"; else cout << "No"; return 0; }
#include <cmath> #include <iostream> using namespace std; int main(void) { long long a, b, c; cin >> a >> b >> c; if (c - a - b <= 0) cout << "No\n"; else if (4 * a * b < (c - a - b) * (c - a - b)) cout << "Yes\n"; else cout << "No\n"; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 44], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 44]]
1
89
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author Joy */ #include <bits/stdc++.h> #define REP(i, N) for (ll i = 0; i < (N); ++i) #define ALL(x) (x).begin(), (x).end() #define MOD 1000000007 #define INF ll(1e9) #define INFL ll(1e18) #define PB push_back #define MP mak...
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author Joy */ #include <bits/stdc++.h> #define REP(i, N) for (ll i = 0; i < (N); ++i) #define ALL(x) (x).begin(), (x).end() #define MOD 1000000007 #define INF ll(1e9) #define INFL ll(1e18) #define PB push_back #define MP mak...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
235
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long a, b, c; cin >> a >> b >> c; if (0 < c - a - b) { if (4 * a * b < (c - a - b) * (c - a - b)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b, c; cin >> a >> b >> c; if (0 < c - a - b) { if (4 * a * b < (c - a - b) * (c - a - b)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
97
a,b,c = gets.split.map(&:to_i) puts (4 * a * b < (c-a-b)**2) ? "Yes" : "No"
a,b,c = gets.split.map(&:to_i) puts (4 * a * b < (c-a-b)**2 && c > a + b) ? "Yes" : "No"
[["+", 3, 4, 0, 754, 15, 739, 0, 738, 17, 98], ["+", 0, 754, 15, 739, 0, 738, 12, 738, 31, 22], ["+", 0, 754, 15, 739, 0, 738, 12, 738, 17, 47], ["+", 15, 739, 0, 738, 12, 738, 12, 738, 31, 22], ["+", 15, 739, 0, 738, 12, 738, 12, 738, 17, 72], ["+", 15, 739, 0, 738, 12, 738, 12, 738, 12, 22]]
4
41
import math d = input().split(" ") a = int(d[0]) b = int(d[1]) c = int(d[2]) e = a*a + b*b -c*c f = 4*a*b if e < 0 and e*e > f: print("Yes") else: print("No")
import math d = input().split(" ") a = int(d[0]) b = int(d[1]) c = int(d[2]) e = a + b - c f = 4*a*b if e < 0 and e*e > f: print("Yes") else: print("No")
[["-", 0, 662, 12, 657, 31, 657, 31, 657, 17, 48], ["-", 0, 662, 12, 657, 31, 657, 31, 657, 12, 22], ["-", 0, 662, 12, 657, 31, 657, 12, 657, 31, 22], ["-", 0, 662, 12, 657, 31, 657, 12, 657, 17, 48], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 31, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48]]
5
86
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, t; cin >> a >> b >> c; t = c - a - b; if (t * t > 4 * a * b) cout << "Yes\n"; else cout << "No\n"; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, t; cin >> a >> b >> c; t = c - a - b; if (t > 0 && t * t > 4 * a * b) cout << "Yes\n"; else cout << "No\n"; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]]
1
65
import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { solve(System.in, System.out); } static void solve(InputStream is, PrintStream os) { Scanner sc = new Scanner(is); /* re...
import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { solve(System.in, System.out); } static void solve(InputStream is, PrintStream os) { Scanner sc = new Scanner(is); /* re...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
3
1,189
#include <bits/stdc++.h> using namespace std; using ll = long long; bool solve() { ll A, B, C; cin >> A >> B >> C; ll x = C - A - B; ll y = 4 * A * B; if (x < 0) return true; return x * x > y; } int main() { string ans = solve() ? "Yes" : "No"; cout << ans << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; bool solve() { ll A, B, C; cin >> A >> B >> C; ll x = C - A - B; ll y = 4 * A * B; if (x < 0) return false; return x * x > y; } int main() { string ans = solve() ? "Yes" : "No"; cout << ans << "\n"; return 0; }
[["-", 0, 14, 8, 9, 0, 57, 64, 37, 0, 146], ["+", 0, 14, 8, 9, 0, 57, 64, 37, 0, 147]]
1
99
#include <bits/stdc++.h> using namespace std; /* a+b+2gen(ab)<c 4ab<(c-a-b)^2 */ typedef long long LL; int main() { LL a, b, c; scanf("%lld%lld%lld", &a, &b, &c); if (4 * a * b < (c - a - b) * (c - a - b)) puts("Yes"); else puts("No"); return 0; }
#include <bits/stdc++.h> using namespace std; /* a+b+2gen(ab)<c 4ab<(c-a-b)^2 */ typedef long long LL; int main() { LL a, b, c; scanf("%lld%lld%lld", &a, &b, &c); if (4 * a * b < (c - a - b) * (c - a - b) && a + b < c) puts("Yes"); else puts("No"); return 0; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
83
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll a, b, c; int main() { cin >> a >> b >> c; puts(4 * a * b < (c - a - b) * (c - a - b) ? "Yes" : "No"); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll a, b, c; int main() { cin >> a >> b >> c; puts(4 * a * b < (c - a - b) * (c - a - b) && c > a + b ? "Yes" : "No"); return 0; }
[["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 98], ["+", 3, 4, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 3, 4, 0, 41, 15, 16, 12, 16, 17, 47], ["+", 0, 41, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 41, 15, 16, 12, 16, 12, 16, 17, 72], ["+", 0, 41, 15, 16, 12, 16, 12, 16, 12, 22]]
1
68
from math import sqrt def main(): a, b, c = map(int, input().split()) if c - a - b < 0: print('No') if 4 * a * b < (c - a - b) * (c - a - b): print('Yes') else: print('No') main()
from math import sqrt def main(): a, b, c = map(int, input().split()) if c - a - b < 0: print('No') exit() if 4 * a * b < (c - a - b) * (c - a - b): print('Yes') else: print('No') main()
[["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
82
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long k = c - a - b; if (k < 0 || 4 * a * b < k * k) puts("Yes"); else puts("No"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long k = c - a - b; if (k > 0 && 4 * a * b < k * k) puts("Yes"); else puts("No"); return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
72
a, b, c = map(int, input().split()) print("Yes" if 4*a*b < pow(c-a-b, 2) else "No")
a, b, c = map(int, input().split()) print("Yes" if 4*a*b < pow(c-a-b, 2) and c > a + b else "No")
[["+", 0, 652, 3, 4, 0, 41, 0, 679, 17, 355], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 0, 22], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 667, 47], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 12, 22]]
5
45
a, b, c = map(int, input().split()) print('Yes' if (c - a - b) ** 2 > 4 * a * b else 'No')
a, b, c = map(int, input().split()) print('Yes' if (c - a - b) ** 2 > 4 * a * b and c > a + b else 'No')
[["+", 0, 652, 3, 4, 0, 41, 0, 679, 17, 355], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 0, 22], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 667, 47], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 12, 22]]
5
44
a, b, c = map(int, input().split()) able = 0 if c - a - b <= 0: able = 0 else: if (c - a - b) ** 2 > 2 * a * b: able = 1 if able: print("Yes") else: print("No")
a, b, c = map(int, input().split()) able = 0 if c - a - b <= 0: able = 0 else: if (c - a - b) ** 2 > 4 * a * b: able = 1 else: able = 0 if able: print("Yes") else: print("No")
[["-", 0, 57, 15, 666, 0, 657, 31, 657, 31, 612], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 31, 612], ["+", 75, 76, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 75, 76, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 6...
5
72
// Coded by tzc_wk /* Êý¾Ý²»Çå¿Õ£¬±¬ÁãÁ½ÐÐÀá¡£ ¶à²â²»¶ÁÍ꣬±¬ÁãÁ½ÐÐÀá¡£ ±ß½ç²»ÌØÅУ¬±¬ÁãÁ½ÐÐÀá¡£ ̰ÐIJ»Ö¤Ã÷£¬±¬ÁãÁ½ÐÐÀá¡£ D P ˳Ðò´í£¬±¬ÁãÁ½ÐÐÀá¡£ ´óСÉٵȺţ¬±¬ÁãÁ½ÐÐÀá¡£ ±äÁ¿²»Í³Ò»£¬±¬ÁãÁ½ÐÐÀá¡£ Ô½½ç²»Åжϣ¬±¬ÁãÁ½ÐÐÀá¡£ µ÷ÊÔ²»×¢ÊÍ£¬±¬ÁãÁ½ÐÐÀá¡£ Òç³ö²» l l£¬±¬ÁãÁ½ÐÐÀá¡£ */ #include <bits/stdc++.h> using namespace std;...
// Coded by tzc_wk /* Êý¾Ý²»Çå¿Õ£¬±¬ÁãÁ½ÐÐÀá¡£ ¶à²â²»¶ÁÍ꣬±¬ÁãÁ½ÐÐÀá¡£ ±ß½ç²»ÌØÅУ¬±¬ÁãÁ½ÐÐÀá¡£ ̰ÐIJ»Ö¤Ã÷£¬±¬ÁãÁ½ÐÐÀá¡£ D P ˳Ðò´í£¬±¬ÁãÁ½ÐÐÀá¡£ ´óСÉٵȺţ¬±¬ÁãÁ½ÐÐÀá¡£ ±äÁ¿²»Í³Ò»£¬±¬ÁãÁ½ÐÐÀá¡£ Ô½½ç²»Åжϣ¬±¬ÁãÁ½ÐÐÀá¡£ µ÷ÊÔ²»×¢ÊÍ£¬±¬ÁãÁ½ÐÐÀá¡£ Òç³ö²» l l£¬±¬ÁãÁ½ÐÐÀá¡£ */ #include <bits/stdc++.h> using namespace std;...
[["-", 0, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 34, 31, 2, 3, 4, 0, 5, 0, 6]]
1
453
#include <bits/stdc++.h> #define mp make_pair #define eb emplace_back #define fi first #define se second #define bit(n) 1 << n using namespace std; using cd = complex<double>; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pair<int, int>> vii; typedef map<int, int> mii; const int Inf = 100000; con...
#include <bits/stdc++.h> #define mp make_pair #define eb emplace_back #define fi first #define se second #define bit(n) 1 << n using namespace std; using cd = complex<double>; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pair<int, int>> vii; typedef map<int, int> mii; const int Inf = 100000; con...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 0, 30, 0, 14, 39, 86, 0, 156]]
1
188
#include <bits/stdc++.h> #define int long long using namespace std; int a, b, c; signed main() { cin >> a >> b >> c; c = c - a - b; if (c < 0 || c * c <= 2 * a * b) printf("No"); else printf("Yes"); return 0; }
#include <bits/stdc++.h> #define int long long using namespace std; int a, b, c; signed main() { cin >> a >> b >> c; c = c - a - b; if (c < 0 || c * c <= 4 * a * b) printf("No"); else printf("Yes"); return 0; }
[["-", 51, 16, 12, 16, 12, 16, 31, 16, 31, 13], ["+", 51, 16, 12, 16, 12, 16, 31, 16, 31, 13]]
1
72
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; typedef long long ll; #define _ \ { ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; typedef long long ll; #define _ \ { ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]]
1
100
package main import ( "bufio" "fmt" "os" "strconv" ) func main() { a := nextInt64() b := nextInt64() c := nextInt64() d := c - a - b if 4*a*b < d*d { fmt.Println("Yes") } else { fmt.Println("No") } } var stdin = initStdin() func initStdin() *bufio.Scanner { bufsize := 1 * 1024 * 1024 // 1 MB var ...
package main import ( "bufio" "fmt" "os" "strconv" ) func main() { a := nextInt64() b := nextInt64() c := nextInt64() d := c - a - b if d >= 0 && 4*a*b < d*d { fmt.Println("Yes") } else { fmt.Println("No") } } var stdin = initStdin() func initStdin() *bufio.Scanner { bufsize := 1 * 1024 * 1024 // ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 433], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 17, 98]]
7
253
import math n,m,k = map(int,input().split()) if 4*n*m < (k-n-m)*(k-n-m): print('Yes') else: print("No")
import math n,m,k = map(int,input().split()) if 4*n*m < (k-n-m)*(k-n-m) and k>n+m: print('Yes') else: print("No")
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
57
a,b,c=gets.split.map(&:to_f) r = c*c - a - b > 0 r &= 4*a*b < (c*c-a-b)**2 puts r ? "Yes" : "No"
a,b,c=gets.split.map(&:to_i) r = c - a - b > 0 r &= 4*a*b < (c-a-b)**2 puts r ? "Yes" : "No"
[["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["-", 12, 738, 31, 738, 31, 738, 31, 738, 31, 22], ["-", 12, 738, 31, 738, 31, 738, 31, 738, 17, 48], ["-", 31, 739, 0, 738, 31, 738, 31, 738, 31, 22], ["-", 31, 739, 0, 738, 31, 738, 31, 738, 17, 48]]
4
55
a,b,c=map(int,input().split()) if c-a-b<=0: print("No") else: l=a*b r=(c-a-b)**2 if r>l: print("Yes") else: print("No")
a,b,c=map(int,input().split()) if c-a-b<=0: print("No") else: l=a*b*4 r=(c-a-b)**2 if r>l: print("Yes") else: print("No")
[["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]]
5
70
a,b,c=map(int,input().split()) p=c-a-b if p**2>4*a*b: print("Yes") else: print("No")
a,b,c=map(int,input().split()) p=c-a-b if p**2>4*a*b and p>0: print("Yes") else: print("No")
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]]
5
50
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, b, c; cin >> a >> b >> c; ll x = c - a - b; if (x * x > 4LL * a * b) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, b, c; cin >> a >> b >> c; ll x = c - a - b; // cout << 4LL * a * b << endl; if (x > 0LL && x * x > 4LL * a * b) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]]
1
77
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <bitset> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map...
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <bitset> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
120
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define repi(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, a) repi(i, 0, a) #define all(a) (a).begin(), (a).end() template <class T> inline bool chmax(T &a, T b) { if (a < b) { a...
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define repi(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, a) repi(i, 0, a) #define all(a) (a).begin(), (a).end() template <class T> inline bool chmax(T &a, T b) { if (a < b) { a...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
209
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; int64_t d = c - a - b, p = 4 * a * b; if (p < d * d) { puts("Yes"); } else { puts("No"); } }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; int64_t d = c - a - b, p = 4 * a * b; if (d > 0 && p < d * d) { puts("Yes"); } else { puts("No"); } }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
71
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef vector<int> VI; typedef vector<vector<int>> VVI; typedef pair<int, int> P; #define rep(i, n)...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef vector<int> VI; typedef vector<vector<int>> VVI; typedef pair<int, int> P; #define rep(i, n)...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
131
a, b, c = map(int, input().split()) if (c - a - b) < 0 or (c - a - b) ** 2 < 4 * a * b: print("No") else: print("Yes")
a, b, c = map(int, input().split()) if (c - a - b) <= 0 or (c - a - b) ** 2 <= 4 * a * b: print("No") else: print("Yes")
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
59
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); long long a, b, c; cin >> a >> b >> c; long long d = c - a - b; if (d < 0) { cout << "Yes\n"; } else { d *= d; long long e = a * b * 4; if (e < d) { cout << "Yes\n"; } else ...
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); long long a, b, c; cin >> a >> b >> c; long long d = c - a - b; if (d < 0) { cout << "No\n"; } else { d *= d; long long e = a * b * 4; if (e < d) { cout << "Yes\n"; } else ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
110
#include <iostream> using namespace std; int main(void) { long long a, b, c, d; cin >> a >> b >> c; d = c - a - b; if (d >= 0 && 4 * a * b <= d * d) puts("Yes"); else puts("No"); }
#include <iostream> using namespace std; int main(void) { long long a, b, c, d; cin >> a >> b >> c; d = c - a - b; if (d >= 0 && 4 * a * b < d * d) puts("Yes"); else puts("No"); }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18]]
1
70
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long a = scanner.nextInt(); long b = scanner.nextInt(); long c = scanner.nextInt(); if (c - a - b < 0) { System.out.println("No"); } else if ((c - a - b) * (c...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long a = scanner.nextInt(); long b = scanner.nextInt(); long c = scanner.nextInt(); if (c - a - b < 0) { System.out.println("No"); } else if ((c - a - b) * (c...
[["-", 15, 15, 0, 16, 12, 16, 31, 16, 31, 499], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 31, 499]]
3
137
#include <bits/stdc++.h> // std::numeric_limits<int>::max(), min() // std::setprecision(X) // std::islower(), std::isupper(), std::tolower, std::toupper // std::accumulate(m.begin(), m.end(), 0LL); // std::sort(begin(),end()) // 0, 1, 2, 3 ,4 (default, less); // std::priority_queue<int, vector<int>, less<int>> que; //...
#include <bits/stdc++.h> // std::numeric_limits<int>::max(), min() // std::setprecision(X) // std::islower(), std::isupper(), std::tolower, std::toupper // std::accumulate(m.begin(), m.end(), 0LL); // std::sort(begin(),end()) // 0, 1, 2, 3 ,4 (default, less); // std::priority_queue<int, vector<int>, less<int>> que; //...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
308
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <stack> #include <unordered_map> #include <vector> int main() { long long int a, b, c;...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <stack> #include <unordered_map> #include <vector> int main() { long long int a, b, c;...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
102
def main(): import sys input = sys.stdin.readline a, b, c = map(int, input().split()) if 4*a*b < (c-a-b)**2: print('Yes') else: print('No') if __name__ == '__main__': main()
def main(): import sys input = sys.stdin.readline a, b, c = map(int, input().split()) if 4*a*b < (c-a-b)**2 and c > a+b: print('Yes') else: print('No') if __name__ == '__main__': main()
[["+", 0, 14, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
73
# -*- coding: utf-8 -*- a,b,c = map(int, input().split()) if (c-a-b)**2>4*a*b: print('Yes') else: print('No')
# -*- coding: utf-8 -*- a,b,c = map(int, input().split()) if (c-a-b)**2>4*a*b and c>a+b: print('Yes') else: print('No')
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
50
#include <bits/stdc++.h> using namespace std; using ll = long long int; using P = pair<ll, ll>; using P3 = pair<double, P>; using PP = pair<P, P>; constexpr int INF = 1 << 30; constexpr ll MOD = ll(1e9 + 7); constexpr int di[] = {0, 1, 0, -1}; constexpr int dj[] = {1, 0, -1, 0}; constexpr double EPS = 1e-9; int main(...
#include <bits/stdc++.h> using namespace std; using ll = long long int; using P = pair<ll, ll>; using P3 = pair<double, P>; using PP = pair<P, P>; constexpr int INF = 1 << 30; constexpr ll MOD = ll(1e9 + 7); constexpr int di[] = {0, 1, 0, -1}; constexpr int dj[] = {1, 0, -1, 0}; constexpr double EPS = 1e-9; int main(...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]]
1
169
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <iostream> #include <map> #include <set> #include <vector> using namespace std; typedef long long ll; int main(void) { ll a, b, c; scanf("%lld%lld%lld", &a, &b, &c); ll flag = 0; if (a + b < c) { ll d = c - a - b; if (4 * a * b < d...
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <iostream> #include <map> #include <set> #include <vector> using namespace std; typedef long long ll; int main(void) { ll a, b, c; scanf("%lld%lld%lld", &a, &b, &c); ll flag = 0; if (a + b < c) { ll d = c - a - b; if (4 * a * b < d...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
120
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; #define all(x) x.begin(), x.end() template <typename T1, typename T2> inline void chkmin(T1 &x, const T2 &y) { if (x > y) x = y; } template <typename T1, typename T2> inline void chkmax(T1...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; #define all(x) x.begin(), x.end() template <typename T1, typename T2> inline void chkmin(T1 &x, const T2 &y) { if (x > y) x = y; } template <typename T1, typename T2> inline void chkmax(T1...
[["+", 15, 339, 51, 16, 31, 16, 31, 16, 31, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 48]]
1
236
#include <bits/stdc++.h> #include <unordered_map> #include <unordered_set> using namespace std; #define REP(i, m, n) for (int i = (m); i < (n); i++) #define rep(i, n) REP(i, 0, n) #define pb push_back #define all(a) a.begin(), a.end() #define rall(c) (c).rbegin(), (c).rend() #define mp make_pair typedef long long ll; t...
#include <bits/stdc++.h> #include <unordered_map> #include <unordered_set> using namespace std; #define REP(i, m, n) for (int i = (m); i < (n); i++) #define rep(i, n) REP(i, 0, n) #define pb push_back #define all(a) a.begin(), a.end() #define rall(c) (c).rbegin(), (c).rend() #define mp make_pair typedef long long ll; t...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]]
1
152
a,b,c = map(int, input().split()) ans = False if c-a-b >= 0 and a*b < (c-a-b)**2: ans = True print('Yes' if ans else 'No')
a,b,c = map(int, input().split()) ans = False if c-a-b >= 0 and 4*a*b < (c-a-b)**2: ans = True print('Yes' if ans else 'No')
[["+", 15, 679, 12, 666, 0, 657, 31, 657, 31, 612], ["+", 15, 679, 12, 666, 0, 657, 31, 657, 17, 48]]
5
59
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; int64_t d = c - (a + b); cout << (4 * a * b < d * d ? "Yes" : "No") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; int64_t d = c - (a + b); cout << (d > 0 && (4 * a * b < d * d) ? "Yes" : "No") << endl; }
[["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 47], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 98], ["+", 12, 23, 0, 41, 15, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 16, 12, 23, 0, 25]]
1
62
#include <iostream> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (4 * a * b < (c - a - b) * (c - a - b)) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (4 * a * b < (c - a - b) * (c - a - b) && c > a + b) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]]
1
73
a,b,c=map(int,input().split()) if c>=a*b and a*b*4<(c-a*b)**2: print("Yes") else: print("No")
a,b,c=map(int,input().split()) if c>=a+b and a*b*4<(c-a-b)**2: print("Yes") else: print("No")
[["-", 0, 57, 15, 679, 31, 666, 0, 657, 17, 48], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["-", 0, 657, 31, 23, 0, 657, 12, 657, 17, 48], ["+", 12, 666, 0, 657, 31, 23, 0, 657, 17, 33]]
5
55
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <string> #include <vector> using namespace std; int main() { cin.tie(0); ios_base::sync_with_stdio(false); long long A, B, C; cin >> A >> B >> C; cout << (C >= A + B && 4 * A * B <= (C - A - B) * (C - A - B) ? "Yes" : "No...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <string> #include <vector> using namespace std; int main() { cin.tie(0); ios_base::sync_with_stdio(false); long long A, B, C; cin >> A >> B >> C; cout << (C >= A + B && 4 * A * B < (C - A - B) * (C - A - B) ? "Yes" : "No"...
[["-", 12, 23, 0, 41, 15, 16, 12, 16, 17, 19], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 18]]
1
97
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
246
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); ++i) #define all(a) (a).begin(), (a).end() int n; void dfs(string str) { if ((int)str.size() == n) { cout << str << '\n'; return; } int st...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); ++i) #define all(a) (a).begin(), (a).end() int n; void dfs(string str) { if ((int)str.size() == n) { cout << str << '\n'; return; } int st...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
176
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); ++i) #define all(a) (a).begin(), (a).end() int n; void dfs(string str, char mx) { if ((int)str.size() == n) { cout << str << '\n'; return; }...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); ++i) #define all(a) (a).begin(), (a).end() int n; void dfs(string str, char mx) { if ((int)str.size() == n) { cout << str << '\n'; return; }...
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
138
#pragma region header #include <algorithm> #include <array> #include <assert.h> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdint> #include <cstring> #include <ctime> #include <deque> #include <fstream> #include <iomanip> #i...
#pragma region header #include <algorithm> #include <array> #include <assert.h> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdint> #include <cstring> #include <ctime> #include <deque> #include <fstream> #include <iomanip> #i...
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 0, 7, 8, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
338
#include <algorithm> #include <array> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctype.h> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stac...
#include <algorithm> #include <array> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctype.h> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stac...
[["-", 0, 2, 3, 4, 0, 41, 64, 16, 31, 22], ["+", 0, 2, 3, 4, 0, 41, 64, 16, 31, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 41, 75, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 41, 75, 22]]
1
7,338
#include <algorithm> #include <array> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctype.h> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stac...
#include <algorithm> #include <array> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctype.h> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stac...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
7,538
def dfs(cnt, s, now): if cnt == n: ans.append(s) return for i in range(now+1): dfs(cnt+1, s+al[i], i+1) n = int(input()) ans = [] al = [chr(i) for i in range(97, 97+26)] dfs(0, "", 0) for i in ans: print(i)
def dfs(cnt, s, now): if cnt == n: ans.append(s) return for i in range(now+1): dfs(cnt+1, s+al[i], max(i+1, now)) n = int(input()) ans = [] al = [chr(i) for i in range(97, 97+26)] dfs(0, "", 0) for i in ans: print(i)
[["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
98
n=int(input()) char=[chr(i) for i in range(97, 97+26)] ans=["a"] before=0 for i in range(2,n+1): for c in range(len(ans)): From=char.index(ans[c][-1]) for m in range(From+2): ans.append(ans[c]+char[m]) #print(ans) b=[] for g in range(len(ans)): if len(ans[g])==n: ...
n=int(input()) char=[chr(i) for i in range(97, 97+26)] ans=["a"] before=0 for i in range(2,n+1): for c in range(len(ans)): From=char.index(sorted(list(ans[c]))[-1]) for m in range(From+2): ans.append(ans[c]+char[m]) #print(ans) b=[] for g in range(len(ans)): if len(ans[g]...
[["+", 12, 652, 3, 4, 0, 206, 51, 652, 63, 22], ["+", 3, 4, 0, 206, 51, 652, 3, 4, 0, 24], ["+", 0, 206, 51, 652, 3, 4, 0, 652, 63, 22], ["+", 51, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 51, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 3, 4, 0, 206, 51, 652, 3, 4, 0, 25]]
5
158
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i, a, b) for (ll i = (a); i < (b); ++i) #define REP(i, n) for (ll i = 0; i < (n); ++i) #define ARRAY_LENGTH(array) sizeof(array) / sizeof(*array) template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i, a, b) for (ll i = (a); i < (b); ++i) #define REP(i, n) for (ll i = 0; i < (n); ++i) #define ARRAY_LENGTH(array) sizeof(array) / sizeof(*array) template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
209
/* * Author: pawanmsr */ // #include <iostream> // #include <iomanip> // #include <string> // #include <vector> // #include <algorithm> // #include <queue> // #include <deque> // #include <bitset> // #include <iterator> // #include <list> // #include <stack> // #include <map> // #include <set> // #include <functiona...
/* * Author: pawanmsr */ // #include <iostream> // #include <iomanip> // #include <string> // #include <vector> // #include <algorithm> // #include <queue> // #include <deque> // #include <bitset> // #include <iterator> // #include <list> // #include <stack> // #include <map> // #include <set> // #include <functiona...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
137
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (c - a - b < 0 || a * b * (long long)4 < (c - a - b) * (c - a - b)) printf("Yes\n"); else printf("No\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (c - a - b > 0 && a * b * (long long)4 < (c - a - b) * (c - a - b)) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
84
a, b, c = map(int, input().split()) if (a*b) * 4 < (c-a-b) ** 2: print("Yes") else: print("No")
a, b, c = map(int, input().split()) if (a*b) * 4 < (c-a-b) ** 2 and c > a + b: print("Yes") else: print("No")
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
51
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace chrono; using namespace __gnu_pbds; mt19937 rng(high_resolution_clock::now().time_since_epoch().count()); mt19937_64 rngll(high_resolution_clock::now().time_since_epoch().count());...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace chrono; using namespace __gnu_pbds; mt19937 rng(high_resolution_clock::now().time_since_epoch().count()); mt19937_64 rngll(high_resolution_clock::now().time_since_epoch().count());...
[["+", 0, 1, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 41, 15, 16, 31, 16, 17, 47], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 41, 15, 16, 17, 98]]
1
213
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char *argv[]) { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); ll a, b, c; cin >> a >> b >> c; ll x = c - a - b; if (x * x > 4 * a * b) { puts("Yes"); } else { puts("No"); } return 0...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char *argv[]) { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); ll a, b, c; cin >> a >> b >> c; ll x = c - a - b; if (x > 0 && x * x > 4 * a * b) { puts("Yes"); } else { puts("No"); } ...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]]
1
104
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // using namespace __gnu_pbds; using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; // typedef tree <int,null_type,less <int>, rb_tree_tag, // tree_order_statistics_node_update> indexed_set; #define...
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // using namespace __gnu_pbds; using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; // typedef tree <int,null_type,less <int>, rb_tree_tag, // tree_order_statistics_node_update> indexed_set; #define...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
207
#include <bits/stdc++.h> #define int long long int #define ld long double #define pb push_back #define pf push_front #define ft first #define sc second #define all(v) v.begin(), v.end() using namespace std; const int maxn = 201001; signed main() { ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); int a, b,...
#include <bits/stdc++.h> #define int long long int #define ld long double #define pb push_back #define pf push_front #define ft first #define sc second #define all(v) v.begin(), v.end() using namespace std; const int maxn = 201001; signed main() { ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); int a, b,...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47]]
1
119
#include <algorithm> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <tuple> #include <vector> using namespace std; #define REP(i, p, n) for (ll i = p; i < ll(n...
#include <algorithm> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <tuple> #include <vector> using namespace std; #define REP(i, p, n) for (ll i = p; i < ll(n...
[["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 98]]
1
151
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c, S, T; cin >> a >> b >> c; S = 2 * (a * b + b * c + c * a); T = a * a + b * b + c * c; if (S < T) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c, S, T; cin >> a >> b >> c; S = 2 * (a * b + b * c + c * a); T = a * a + b * b + c * c; if (S < T && c > a + b) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]]
1
90
a, b, c = map(int, input().split()) if c-a-b <= 0: print("Np") else: if 4*a*b < (c-a-b)**2: print("Yes") else: print("No")
a, b, c = map(int, input().split()) if c-a-b <= 0: print("No") else: if 4*a*b < (c-a-b)**2: print("Yes") else: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
66
#!/usr/bin/env python3 import sys import decimal import math YES = "Yes" # type: str NO = "No" # type: str def solve(a: int, b: int, c: int): decimal.getcontext().prec = 22 if((c-a-b)**2>4*(a*b)):print(YES) else:print(NO) return # Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools ...
#!/usr/bin/env python3 import sys import decimal import math YES = "Yes" # type: str NO = "No" # type: str def solve(a: int, b: int, c: int): decimal.getcontext().prec = 22 if((c-a-b)**2>4*(a*b) and c>a+b):print(YES) else:print(NO) return # Generated by 1.1.6 https://github.com/kyuridenamida/atcod...
[["+", 8, 196, 0, 57, 15, 23, 0, 679, 17, 355], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 0, 22], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 667, 47], ["+", 15, 23, 0, 679, 12, 666, 0, 657, 31, 22], ["+", 15, 23, 0, 679, 12, 666, 0, 657, 17, 72], ["+", 15, 23, 0, 679, 12, 666, 0, 657, 12, 22]]
5
158
/* * Codeforces Contest * Au: Lost_Deviation */ #ifndef open_dbg_func #define err(args...) #endif #include <bits/stdc++.h> using namespace std; #define ll long long static auto XxXOxO = []() { std::ios::sync_with_stdio(false); // turn off sync cin.tie(nullptr); // untie in/out streams return 0;...
/* * Codeforces Contest * Au: Lost_Deviation */ #ifndef open_dbg_func #define err(args...) #endif #include <bits/stdc++.h> using namespace std; #define ll long long static auto XxXOxO = []() { std::ios::sync_with_stdio(false); // turn off sync cin.tie(nullptr); // untie in/out streams return 0;...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
272
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll maxs = 1e6 + 5; const ll lmaxs = 20; ll mod = 1e9 + 7; ll oo = 1e9; #define pb push_back #define mp make_pair #define ff first #define ss second #define I insert int main() { // #ifndef ONLINE_JUDGE // freopen("input00.txt","r",stdin); ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll maxs = 1e6 + 5; const ll lmaxs = 20; ll mod = 1e9 + 7; ll oo = 1e9; #define pb push_back #define mp make_pair #define ff first #define ss second #define I insert int main() { // #ifndef ONLINE_JUDGE // freopen("input00.txt","r",stdin); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
172
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll a, b, c; inline int read() { char ch = getchar(); int x = 0, f = 1; while (ch < '0' || ch > '9') f = (ch == '-' ? -1 : 1), ch = getchar(); while (ch >= '0' && ch <= '9') x = x * 10 + ch - 48, ch = getchar(); return x * f; } int ma...
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll a, b, c; inline int read() { char ch = getchar(); int x = 0, f = 1; while (ch < '0' || ch > '9') f = (ch == '-' ? -1 : 1), ch = getchar(); while (ch >= '0' && ch <= '9') x = x * 10 + ch - 48, ch = getchar(); return x * f; } int ma...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
183
a,b,c=map(int,input().split()) if 4*a*b<(c-a-b)**2: print("Yes") else: print("No")
a,b,c=map(int,input().split()) if 4*a*b<(c-a-b)**2 and c>a+b: print("Yes") else: print("No")
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]]
5
49
a,b,c=map(int,input().split()) if a+b>c: print("Yes") elif 4*a*b<(c-a-b)**2: print("Yes") else: print("No")
a,b,c=map(int,input().split()) if a+b>c: print("No") elif 4*a*b<(c-a-b)**2: print("Yes") else: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
62
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long using namespace std; int main() { ull a, b, c; cin >> a >> b >> c; ull right = c - (a + b); if (right <= 0) { cout << "No" << endl; return 0; } ull left = 4 * a * b; right = right * right; if (right > left) { ...
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long using namespace std; int main() { ll a, b, c; cin >> a >> b >> c; ll right = c - (a + b); if (right <= 0) { cout << "No" << endl; return 0; } ll left = 4 * a * b; right = right * right; if (right > left) { co...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
108
#define ll long long #define pub push_back #define pob pop_back #define puf push_front #define pof pop_front #define mp make_pair #define fo(i, n) for (ll i = 0; i < n; i++) #include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #inc...
#define ll long long #define pub push_back #define pob pop_back #define puf push_front #define pof pop_front #define mp make_pair #define fo(i, n) for (ll i = 0; i < n; i++) #include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #inc...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
374
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define BUG puts("no bug") #define sci(x) scanf("%d", &x) #define scl(x) scanf("%lld", &...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define BUG puts("no bug") #define sci(x) scanf("%d", &x) #define scl(x) scanf("%lld", &...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
193
#include <cstdio> #include <iostream> using namespace std; long long a, b, c; int main() { cin >> a >> b >> c; if (c - (a + b) < 0) puts("NO"); else { if (4 * a * b < a * a + b * b + c * c - 2 * a * c - 2 * b * c + 2 * a * b) puts("YES"); else puts("NO"); } return 0; }
#include <cstdio> #include <iostream> using namespace std; long long a, b, c; int main() { cin >> a >> b >> c; if (c - (a + b) < 0) puts("No"); else { if (4 * a * b < a * a + b * b + c * c - 2 * a * c - 2 * b * c + 2 * a * b) puts("Yes"); else puts("No"); } return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
108
/* PAIN demands to be felt so do RE, TLE, MLE, SIGSEV & WA */ #include <bits/stdc++.h> using namespace std; // -----------------<fast IO>------------------ #define CIN \ ios::sync_with_stdio(0); ...
/* PAIN demands to be felt so do RE, TLE, MLE, SIGSEV & WA */ #include <bits/stdc++.h> using namespace std; // -----------------<fast IO>------------------ #define CIN \ ios::sync_with_stdio(0); ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
1,071
#include <iostream> using namespace std; using large = long long; int main() { large a, b, c; cin >> a >> b >> c; auto x = c - a - b; cout << (x * x > 4 * a * b ? "Yes" : "No"); return 0; }
#include <iostream> using namespace std; using large = long long; int main() { large a, b, c; cin >> a >> b >> c; auto x = c - a - b; cout << (x >= 0 && x * x > 4 * a * b ? "Yes" : "No"); return 0; }
[["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 13], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 98], ["+", 0, 41, 15, 16, 12, 16, 31, 16, 31, 22]]
1
67