結果

問題 No.410 出会い
ユーザー shimadandyshimadandy
提出日時 2016-09-05 13:15:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 693 bytes
コンパイル時間 2,022 ms
コンパイル使用メモリ 103,632 KB
実行使用メモリ 24,840 KB
最終ジャッジ日時 2023-09-10 20:08:11
合計ジャッジ時間 4,554 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
22,640 KB
testcase_01 AC 63 ms
20,792 KB
testcase_02 AC 63 ms
22,804 KB
testcase_03 AC 64 ms
24,792 KB
testcase_04 AC 63 ms
22,648 KB
testcase_05 AC 64 ms
22,704 KB
testcase_06 AC 63 ms
22,716 KB
testcase_07 AC 63 ms
24,692 KB
testcase_08 AC 64 ms
22,764 KB
testcase_09 AC 64 ms
22,704 KB
testcase_10 AC 63 ms
22,796 KB
testcase_11 AC 64 ms
24,676 KB
testcase_12 AC 63 ms
22,780 KB
testcase_13 AC 63 ms
22,764 KB
testcase_14 AC 63 ms
20,712 KB
testcase_15 AC 63 ms
22,740 KB
testcase_16 AC 64 ms
24,700 KB
testcase_17 AC 64 ms
22,760 KB
testcase_18 AC 64 ms
22,792 KB
testcase_19 AC 63 ms
24,696 KB
testcase_20 AC 64 ms
22,704 KB
testcase_21 AC 64 ms
24,840 KB
testcase_22 AC 63 ms
22,668 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace rummy
{
    class Program
    {
        /// <summary>
        /// プログラムのエントリポイント
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            string[] tmp = Console.ReadLine().Split(' ');
            int x1 = int.Parse(tmp[0]);
            int y1 = int.Parse(tmp[1]);

            tmp = Console.ReadLine().Split(' ');
            int x2 = int.Parse(tmp[0]);
            int y2 = int.Parse(tmp[1]);

            int xrange = Math.Abs(x1 - x2);
            int yrange = Math.Abs(y1 - y2);

            Console.WriteLine(((double)xrange + (double)yrange) / 2);
        }
    }
}
0