結果
問題 |
No.3042 拡大コピー
|
ユーザー |
|
提出日時 | 2025-02-28 23:01:13 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 536 bytes |
コンパイル時間 | 6,728 ms |
コンパイル使用メモリ | 430,476 KB |
実行使用メモリ | 8,236 KB |
最終ジャッジ日時 | 2025-03-01 07:41:07 |
合計ジャッジ時間 | 9,286 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 24 |
ソースコード
#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 pmx=0,qmx=0; for(int i=0;i<N;i++){ ld x,y;cin>>x>>y; pmx=max(pmx,x*x+y*y); } for(int i=0;i<N;i++){ ld x,y;cin>>x>>y; qmx=max(qmx,x*x+y*y); } cout<<fixed<<setprecision(50); ld ans=pmx/qmx; ans=sqrt(ans); cout<<ans<<endl; }