結果

問題 No.3042 拡大コピー
ユーザー nouka28
提出日時 2025-02-28 22:42:50
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 580 bytes
コンパイル時間 10,244 ms
コンパイル使用メモリ 434,740 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2025-03-01 07:40:00
合計ジャッジ時間 15,447 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")

#include<boost/multiprecision/cpp_dec_float.hpp>
using ld=boost::multiprecision::cpp_dec_float_50;

int main(){
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	int N;cin>>N;

	ld P=2e9,Q=2e9;

	for(int i=0;i<N;i++){
		ld x,y;cin>>x>>y;
		if(x==ld(0)&&y==ld(0))continue;
		P=min(P,sqrt(x*x+y*y));
	}
	for(int i=0;i<N;i++){
		ld x,y;cin>>x>>y;
		if(x==ld(0)&&y==ld(0))continue;
		Q=min(Q,sqrt(x*x+y*y));
	}
	ld ans=Q/P;
	cout<<fixed<<setprecision(50)<<ans<<endl;
}
0