Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int n;
- double a, b, c, d, e, f, x1, x2;
- cin >> n;
- for (int i = 0; i != n; ++i) {
- cin >> a >> b >> c >> d >> e >> f;
- if ((b * b - 3 * a * c) >= 0)
- {
- x1 = (b * b - sqrt(b * b - 3 * a * c)) / 3 / a;
- x2 = (b * b + sqrt(b * b - 3 * a * c)) / 3 / a;
- if ((max(e,f)>x1 && x1>min(e,f)) ^ (max(e,f)>x2 && x2>min(e,f)))
- {
- if
- }
- }
- else
- {
- // lalka
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement