답안 #742898

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
742898 2023-05-17T05:52:56 Z jamezzz Nicelines (RMI20_nicelines) C++17
0 / 100
1000 ms 292 KB
#include <bits/stdc++.h>
using namespace std;
#include "nice_lines.h"

void solve(int subtask_id,int N){
	long double ans[]={query(0,0),query(0,1),query(0,2)};
    for(int a=-1e4;a<=1e4;++a){
		long double denom=pow(1+a*a,0.5);
		for(int b=-1e4;b<=1e4;++b){
			bool can=true;
			//printf("%d %d: ",a,b);
			for(int x=0;x<=2;++x){
				//printf("(%Lf %Lf) ",(a*x+b)/pow((long double)1+a*a,0.5),ans[x]);
				if(abs((long double)(a*x+b)/denom-ans[x])>1e-6)can=false;
			}
			//printf("\n");
			if(can)the_lines_are({a},{b});
		}
	}
}
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 1120 ms 292 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3054 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3070 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3068 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3020 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3068 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -