結果
問題 | No.410 出会い |
ユーザー |
![]() |
提出日時 | 2022-08-09 12:19:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 699 ms |
コンパイル使用メモリ | 77,348 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 18:35:36 |
合計ジャッジ時間 | 1,441 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 WA * 1 |
ソースコード
#include <iostream> #include <vector> #include <map> #include<string> #include<queue> #include<math.h> #define ll long long #define P pair<double,double> #define lP pait<ll,ll> using namespace std; int main() { P p,q; double ans; cin>>p.first>>p.second>>q.first>>q.second; ans=abs(p.first-q.first)+abs(p.second-q.second); cout<<ans/2<<endl; return 0; }