結果
| 問題 |
No.410 出会い
|
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-06-07 14:53:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 745 ms |
| コンパイル使用メモリ | 91,564 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-23 17:15:51 |
| 合計ジャッジ時間 | 1,632 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 1 |
ソースコード
#include<iostream>
#include<math.h>
#include<string.h>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<deque>
#include<map>
#include<stdio.h>
using namespace std;
int main(){
double px,py;
cin >> px >> py;
double qx,qy;
cin >> qx >> qy;
double dx=(px-qx);
if(dx<0)dx*=-1;
double dy=(py-qy);
if(dy<0)dy*=-1;
double dist=(dx+dy)/2;
cout << dist << endl;
return 0;
}
mmn15277198