# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
253461 | Markoes | Wish (LMIO19_noras) | C++14 | 190 ms | 11376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
int n;
long long R,a,b,c,d,l,r,mid,teng,tmp1,tmp2,opo,bwh,ats;
vector<pair<long long,long long> > v;
long long dist(long long x){
long long ret;
ret = (a+c*x)*(a+c*x) + (b+d*x)*(b+d*x);
return ret;
}
int main(){
ios_base::sync_with_stdio(NULL);
cin.tie(0);cout.tie(0);
cin>>n>>R;
R *= R;
for(int i=1;i<=n;i++){
cin>>a>>b>>c>>d;
c = c-a;
d = d-b;
a -= c;
b -= d;
opo = max(abs(c),abs(d));
l = 1;
r = 1e9/opo;
//cout<<r<<endl;
while(l<=r){
mid = (l+r)/2;
tmp1 = dist(mid);
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |