結果
問題 |
No.3042 拡大コピー
|
ユーザー |
|
提出日時 | 2025-02-28 23:11:36 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 453 bytes |
コンパイル時間 | 5,668 ms |
コンパイル使用メモリ | 389,924 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-03-01 07:41:25 |
合計ジャッジ時間 | 11,335 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | RE * 24 |
ソースコード
#include<bits/stdc++.h> using namespace std; #include<boost/multiprecision/cpp_dec_float.hpp> using ld=boost::multiprecision::cpp_dec_float_100; 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); } assert(p.first*q.second==p.second*q.first); }