結果

問題 No.410 出会い
ユーザー _matumo_
提出日時 2018-08-08 21:53:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 499 bytes
コンパイル時間 1,317 ms
コンパイル使用メモリ 110,816 KB
実行使用メモリ 28,048 KB
最終ジャッジ日時 2024-09-23 04:01:16
合計ジャッジ時間 2,653 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Text;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var va = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var vb = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var f = (Math.Abs(vb[0] - va[0]) + Math.Abs(vb[1] - va[1])) / 2.0;
            Console.WriteLine(f);
            Console.ReadLine();
        }
    }
}
0