답안 #1009121

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1009121 2024-06-27T09:00:33 Z tarpent 생물 실험 (IZhO13_expgorl) C++14
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
long long n,gx,gy,lx,ly;
string pu;
double mi,ma,tr;
int vis[100000][100000];
int main(){
	ios::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	
	cin>>n;
	cin>>pu;
	cin>>lx>>ly>>gx>>gy;
	mi= INT_MAX;
	ma=0;
	for(int i = 0; i<n; i++){
		for(auto e: pu){
			if(e=='L'){
				gx-=1;
			}
			else if(e=='R'){
				gx+=1;
			}
			else if(e=='F'){
				gy+=1;
			}
			else if(e=='B'){
				gy-=1;
			}
			else if(e=='I'){
				continue;
			}
			if(vis[gx][gx]==1 ) continue;
			else{
				vis[gx][gy]=1;
				tr=sqrt(abs(lx-gx)*abs(lx-gx) +abs(ly-gy)*abs(ly-gy));
				if(tr>ma) ma = tr;
				if(tr<mi) mi = tr;
			}
			
		}
	}
	cout<<fixed;
	
	cout<<setprecision(12);
	cout<<mi<<' '<<ma;
	
	
}

Compilation message

/usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
collect2: error: ld returned 1 exit status