結果

問題 No.410 出会い
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-21 01:09:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 2,038 ms
コンパイル使用メモリ 103,820 KB
実行使用メモリ 25,872 KB
最終ジャッジ日時 2023-09-13 07:29:32
合計ジャッジ時間 4,530 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
23,744 KB
testcase_01 AC 64 ms
23,668 KB
testcase_02 AC 65 ms
25,572 KB
testcase_03 AC 65 ms
23,744 KB
testcase_04 AC 65 ms
25,732 KB
testcase_05 AC 64 ms
23,684 KB
testcase_06 AC 65 ms
23,680 KB
testcase_07 AC 66 ms
23,672 KB
testcase_08 AC 66 ms
23,776 KB
testcase_09 AC 65 ms
25,804 KB
testcase_10 AC 65 ms
23,752 KB
testcase_11 AC 64 ms
21,820 KB
testcase_12 AC 64 ms
23,680 KB
testcase_13 AC 65 ms
25,872 KB
testcase_14 AC 65 ms
23,696 KB
testcase_15 AC 65 ms
25,740 KB
testcase_16 AC 65 ms
23,696 KB
testcase_17 AC 65 ms
23,768 KB
testcase_18 AC 64 ms
23,760 KB
testcase_19 AC 64 ms
21,604 KB
testcase_20 AC 64 ms
25,704 KB
testcase_21 AC 64 ms
23,612 KB
testcase_22 AC 66 ms
23,816 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 No410{
    static void Main(){
        var a=Console.ReadLine().Split(' ').Select(n=>Double.Parse(n)).ToArray();
        var b=Console.ReadLine().Split(' ').Select(n=>Double.Parse(n)).ToArray();
        var d=(Math.Abs(a[0]-b[0])+Math.Abs(a[1]-b[1]))/2;
        Console.WriteLine(d);
    }
}
0