結果

問題 No.410 出会い
ユーザー mencottonmencotton
提出日時 2017-12-27 17:17:44
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 428 bytes
コンパイル時間 2,033 ms
コンパイル使用メモリ 103,752 KB
実行使用メモリ 25,856 KB
最終ジャッジ日時 2023-09-10 20:21:37
合計ジャッジ時間 4,678 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
23,904 KB
testcase_01 AC 66 ms
23,864 KB
testcase_02 AC 67 ms
25,832 KB
testcase_03 AC 69 ms
25,840 KB
testcase_04 AC 68 ms
23,780 KB
testcase_05 AC 67 ms
23,840 KB
testcase_06 AC 67 ms
23,820 KB
testcase_07 AC 68 ms
23,844 KB
testcase_08 AC 67 ms
23,724 KB
testcase_09 AC 68 ms
23,888 KB
testcase_10 AC 69 ms
25,856 KB
testcase_11 AC 68 ms
23,868 KB
testcase_12 AC 68 ms
25,784 KB
testcase_13 AC 67 ms
23,656 KB
testcase_14 AC 69 ms
25,776 KB
testcase_15 AC 67 ms
23,796 KB
testcase_16 AC 67 ms
23,692 KB
testcase_17 AC 68 ms
25,732 KB
testcase_18 AC 68 ms
25,808 KB
testcase_19 AC 68 ms
21,664 KB
testcase_20 AC 68 ms
23,708 KB
testcase_21 AC 70 ms
23,720 KB
testcase_22 AC 67 ms
21,612 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.Collections.Generic;
using System.Linq;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            double[] x = Console.ReadLine().Split().Select(double.Parse).ToArray();
            double[] y = Console.ReadLine().Split().Select(double.Parse).ToArray();
            Console.WriteLine((Math.Abs(x[0] - y[0]) + Math.Abs(x[1] - y[1])) / 2);
        }
    }
}
0