結果
| 問題 |
No.3042 拡大コピー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:44:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 438 bytes |
| コンパイル時間 | 623 ms |
| コンパイル使用メモリ | 71,104 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-03-01 07:38:01 |
| 合計ジャッジ時間 | 1,758 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 24 |
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
#include<cassert>
using namespace std;
int N;
pair<int,int>rd()
{
pair<int,int>p=make_pair(0,0);
for(int i=0;i<N;i++)
{
pair<int,int>q;
cin>>q.first>>q.second;
p=max(p,q);
}
return p;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin>>N;
auto x=rd();
auto y=rd();
cout<<fixed<<setprecision(16)<<hypot(y.first,y.second)/hypot(x.first,x.second)<<endl;
}