#include<bits/stdc++.h>
#include "nice_lines.h"
using namespace std;
int a,b,c,d,e,i,j,ii,jj,zx,xc;
long double A,C,D,E,X,Y,XX,YY,K,B,A1,A2;
void solve(int subtask_id, int NN) {
/*printf("subtask_id = %d, N = %d\n", subtask_id, N);
printf("query(0, 0) = %Lf\n", query(0, 0));
printf("query(1, 1) = %Lf\n", query(1, 1));
the_lines_are({1}, {0});*/
A1=query(0,0);A2=query(1,0);X=1.0;
K=(A2-A1)/sqrt(X*X-(A2-A1)*(A2-A1));
XX=(0.0-(A1*X)/(A2-A1));YY=0.0;
B=Y-K*XX;
a=round(K);b=round(B);
the_lines_are({a},{b});
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |