結果
問題 | No.410 出会い |
ユーザー |
![]() |
提出日時 | 2018-05-01 13:13:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 1,700 ms |
コンパイル使用メモリ | 165,896 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 11:42:26 |
合計ジャッジ時間 | 2,379 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
#include<bits/stdc++.h>using namespace std;using Int = long long;struct Precision{Precision(){cout<<fixed<<setprecision(12);}}precision_beet;//INSERT ABOVE HEREsigned main(){Int px,py,qx,qy;cin>>px>>py>>qx>>qy;double ans=0;ans+=abs(px-qx)/2.;ans+=abs(py-qy)/2.;//if((abs(px-qx)&1)&&(abs(py-qy)&1)) ans+=0.5;cout<<ans<<endl;return 0;}