結果

問題 No.410 出会い
ユーザー olphe
提出日時 2016-11-15 23:22:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 57,060 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 11:19:07
合計ジャッジ時間 1,189 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "math.h"
using namespace std;

int x[2],y[2];
int ans;
int main(){
cin >>x[0]>>y[0]>>x[1]>>y[1];
ans+=abs(x[0]-x[1])+abs(y[0]-y[1]);
if(ans%2==0)cout <<ans/2;
else cout <<ans/2<<".5";
cout <<"\n";
return 0;
}
0