結果

問題 No.410 出会い
ユーザー olphe
提出日時 2016-11-15 23:20:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 58,212 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-26 01:56:06
合計ジャッジ時間 1,064 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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