結果

問題 No.410 出会い
ユーザー swdamdrswdamdr
提出日時 2017-01-26 14:36:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 429 bytes
コンパイル時間 4,974 ms
コンパイル使用メモリ 105,008 KB
実行使用メモリ 25,936 KB
最終ジャッジ日時 2023-09-10 20:15:03
合計ジャッジ時間 5,646 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
25,932 KB
testcase_01 AC 67 ms
25,936 KB
testcase_02 AC 68 ms
23,904 KB
testcase_03 AC 68 ms
23,712 KB
testcase_04 AC 68 ms
23,900 KB
testcase_05 AC 68 ms
23,928 KB
testcase_06 AC 68 ms
21,948 KB
testcase_07 AC 67 ms
23,832 KB
testcase_08 AC 68 ms
25,896 KB
testcase_09 AC 68 ms
25,824 KB
testcase_10 AC 67 ms
23,796 KB
testcase_11 AC 68 ms
25,812 KB
testcase_12 AC 67 ms
23,832 KB
testcase_13 AC 67 ms
25,900 KB
testcase_14 AC 68 ms
23,896 KB
testcase_15 AC 68 ms
25,888 KB
testcase_16 AC 68 ms
23,840 KB
testcase_17 AC 67 ms
23,820 KB
testcase_18 AC 68 ms
23,672 KB
testcase_19 AC 69 ms
25,912 KB
testcase_20 AC 68 ms
23,856 KB
testcase_21 AC 68 ms
25,876 KB
testcase_22 AC 69 ms
23,732 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;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        int[] a = Console.ReadLine().Split().Select(v => int.Parse(v)).ToArray();
        int[] b = Console.ReadLine().Split().Select(v => int.Parse(v)).ToArray();

        double d = (Math.Abs(a[0] - b[0]) + Math.Abs(a[1] - b[1])) / 2.0;

        Console.WriteLine(d);
        Console.Read();
    }
}

0