結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2018-02-27 13:25:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 468 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 67,328 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 08:14:27 |
合計ジャッジ時間 | 1,299 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 WA * 1 |
ソースコード
// No.410 出会い // https://yukicoder.me/problems/no/410 // #include <iostream> #include <cmath> using namespace std; double solve(int px, int py, int qx, int qy); int main() { int px, py; int qx, qy; cin >> px >> py; cin >> qx >> qy; double ans = solve(px, py, qx, qy); cout << ans << endl; } double solve(int px, int py, int qx, int qy) { int xdiff = abs(px - qx); int ydiff = abs(py - qy); return (xdiff + ydiff) / 2.0; }