結果

問題 No.410 出会い
ユーザー wowilsonwowilson
提出日時 2016-10-10 00:10:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 476 bytes
コンパイル時間 3,011 ms
コンパイル使用メモリ 107,700 KB
実行使用メモリ 25,864 KB
最終ジャッジ日時 2023-09-10 20:11:52
合計ジャッジ時間 5,915 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
23,708 KB
testcase_01 AC 66 ms
23,880 KB
testcase_02 AC 66 ms
23,760 KB
testcase_03 AC 67 ms
23,780 KB
testcase_04 AC 67 ms
23,760 KB
testcase_05 AC 67 ms
23,848 KB
testcase_06 AC 67 ms
23,848 KB
testcase_07 AC 67 ms
23,716 KB
testcase_08 AC 67 ms
25,864 KB
testcase_09 AC 66 ms
23,704 KB
testcase_10 AC 66 ms
23,576 KB
testcase_11 AC 67 ms
23,748 KB
testcase_12 AC 66 ms
23,856 KB
testcase_13 AC 67 ms
23,836 KB
testcase_14 AC 67 ms
25,832 KB
testcase_15 AC 67 ms
23,872 KB
testcase_16 AC 67 ms
23,704 KB
testcase_17 AC 67 ms
25,704 KB
testcase_18 AC 66 ms
23,784 KB
testcase_19 AC 66 ms
25,684 KB
testcase_20 AC 67 ms
23,636 KB
testcase_21 AC 67 ms
25,688 KB
testcase_22 AC 67 ms
25,832 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;

namespace Yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var A = Console.ReadLine().Split(' ').Select(x=>double.Parse(x)).ToArray();
            var B = Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray();

            double difX = Math.Abs(A[0] - B[0]);
            double difY = Math.Abs(A[1] - B[1]);

            Console.WriteLine((difX + difY) / 2);
        }
    }
}
0