結果

問題 No.410 出会い
ユーザー akichiakichi
提出日時 2017-08-28 22:32:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 329 bytes
コンパイル時間 2,700 ms
コンパイル使用メモリ 102,352 KB
実行使用メモリ 26,000 KB
最終ジャッジ日時 2023-09-10 20:19:22
合計ジャッジ時間 4,738 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
23,856 KB
testcase_01 AC 65 ms
23,908 KB
testcase_02 AC 66 ms
25,844 KB
testcase_03 AC 65 ms
21,764 KB
testcase_04 AC 65 ms
23,800 KB
testcase_05 AC 66 ms
25,760 KB
testcase_06 AC 66 ms
25,840 KB
testcase_07 AC 66 ms
24,020 KB
testcase_08 AC 65 ms
23,924 KB
testcase_09 AC 67 ms
23,848 KB
testcase_10 AC 66 ms
25,856 KB
testcase_11 AC 65 ms
25,936 KB
testcase_12 AC 65 ms
21,776 KB
testcase_13 AC 65 ms
25,740 KB
testcase_14 AC 66 ms
25,852 KB
testcase_15 AC 65 ms
23,880 KB
testcase_16 AC 65 ms
23,880 KB
testcase_17 AC 66 ms
23,920 KB
testcase_18 AC 66 ms
25,904 KB
testcase_19 AC 65 ms
26,000 KB
testcase_20 AC 65 ms
23,824 KB
testcase_21 AC 64 ms
23,832 KB
testcase_22 AC 65 ms
23,804 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;
class Program {
    static void Main() {
        int[] p = Console.ReadLine().Split().Select(int.Parse).ToArray();
        int[] q = Console.ReadLine().Split().Select(int.Parse).ToArray();
        int d = Math.Abs(p[0] - q[0]) + Math.Abs(p[1] - q[1]);
        Console.WriteLine(d / 2.0);
    }
}
0