結果

問題 No.410 出会い
ユーザー language_43
提出日時 2016-09-12 15:51:46
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 644 ms
コンパイル使用メモリ 73,120 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 03:59:03
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

# include <iostream>
# include <cstring>
# include <string>
# include <vector>
# include <cmath>
# include <sstream>
# include <iomanip>
# include <algorithm>
using namespace std;

int main(){
	int  p[2], q[2];
	for(int i=0;i<2;i++){
		cin >> p[i];
	}
	for(int i=0;i<2;i++){
		cin >> q[i];
	}

	double data = abs(p[0] - q[0]) + abs(p[1] - q[1]);
	cout << data << endl;

	cout << fixed  << setprecision(10) << data/2.0 << endl;

}
0