結果
| 問題 | 
                            No.410 出会い
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Kazu05
                         | 
                    
| 提出日時 | 2019-03-23 09:59:16 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 299 bytes | 
| コンパイル時間 | 1,492 ms | 
| コンパイル使用メモリ | 165,340 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-22 00:24:57 | 
| 合計ジャッジ時間 | 2,393 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 18 WA * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
	cin.sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int p[10];
	int q[10];
	cin >> p[0] >> p[1];
	cin >> q[0] >> q[1];
	double ans = 0;
	for (int i = 0; i < 2; i++) {
		double x = abs(p[i] - q[i]);
		ans += x;
	}
	cout << ans / 2 << endl;
}
            
            
            
        
            
Kazu05