Submission #743000

#TimeUsernameProblemLanguageResultExecution timeMemory
743000hmm789Nicelines (RMI20_nicelines)C++14
0 / 100
1 ms300 KiB
#include <stdio.h> #include "nice_lines.h" #include <bits/stdc++.h> void solve(int subtask_id, int N) { long double x = query(0, 0); long double y = query(1, 0); long double z = query(0.5, 0); long double w = query(1, 0); if(z >= x || z >= y) { long double a = tan(asin(y-x)); if(x == y) { the_lines_are({0}, {(int)round(x)}); } else { int a1 = (int)round(a); int b1 = (int)round(a*x/(y-x)); the_lines_are({a1}, {b1}); } } else { long double a = tan(asin(x+y)); if(w < x) a = -a; int a1 = (int)round(a); int b1 = (int)round(-a*x/(x+y)); the_lines_are({a1}, {b1}); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...