結果
問題 | No.410 出会い |
ユーザー |
![]() |
提出日時 | 2020-01-05 11:42:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 1,487 ms |
コンパイル使用メモリ | 166,220 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 21:57:03 |
合計ジャッジ時間 | 2,240 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++) #define repi(i,a,b) for(ll (i)=(a);(i)<(b);(i)++) #define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0])) typedef long long ll; using namespace std; int main(){ //マンハッタン距離 double px,py,qx,qy; double ans; cin >> px >> py >> qx >> qy; ans = (abs(px-qx)+abs(py-qy))/2.0; cout << fixed << setprecision(1) << ans << endl; return 0; }