結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2016-09-12 23:32:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 420 bytes |
コンパイル時間 | 1,469 ms |
コンパイル使用メモリ | 166,088 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 11:15:29 |
合計ジャッジ時間 | 2,280 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<n;i++) #define REP(i,a,b) for(int i=a;i<b;i++) using ll = long long; using ull = unsigned long long; using namespace std; double px,py; double qx,qy; void solve() { cin >> px >> py >> qx >> qy; cout << fixed << setprecision(1) << (abs(px-qx) / 2.0 + abs(py-qy) / 2.0) << endl; } int main(){cin.tie(0);ios_base::sync_with_stdio(false);solve();return 0;}