結果

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

ソースコード

diff #

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

using ld=long double;

int main(){
	int N;cin>>N;
	
	pair<ld,ld> p={0,0},q={0,0};
	for(int i=0;i<N;i++){
		ld x,y;cin>>x>>y;
		p.first=max(p.first,x);
		p.second=max(p.second,y);
	}
	for(int i=0;i<N;i++){
		ld x,y;cin>>x>>y;
		q.first=max(q.first,x);
		q.second=max(q.second,y);
	}
	
	swap(p,q);
	cout<<fixed<<setprecision(50)<<min(p.first/q.first,p.second/q.second)<<endl;
}
0