結果

問題 No.410 出会い
ユーザー 14番14番
提出日時 2016-09-01 20:19:31
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 1,145 bytes
コンパイル時間 4,772 ms
コンパイル使用メモリ 106,144 KB
実行使用メモリ 24,096 KB
最終ジャッジ日時 2023-09-10 20:06:52
合計ジャッジ時間 5,833 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
24,088 KB
testcase_01 AC 68 ms
21,892 KB
testcase_02 AC 66 ms
22,080 KB
testcase_03 AC 67 ms
23,976 KB
testcase_04 AC 66 ms
24,044 KB
testcase_05 AC 66 ms
22,024 KB
testcase_06 AC 67 ms
22,008 KB
testcase_07 AC 67 ms
22,004 KB
testcase_08 AC 67 ms
23,996 KB
testcase_09 AC 67 ms
22,024 KB
testcase_10 AC 66 ms
21,980 KB
testcase_11 AC 66 ms
22,040 KB
testcase_12 AC 67 ms
21,952 KB
testcase_13 AC 66 ms
21,940 KB
testcase_14 AC 66 ms
22,044 KB
testcase_15 AC 67 ms
19,976 KB
testcase_16 AC 67 ms
22,120 KB
testcase_17 AC 66 ms
24,096 KB
testcase_18 AC 67 ms
23,980 KB
testcase_19 AC 66 ms
20,088 KB
testcase_20 AC 66 ms
19,872 KB
testcase_21 AC 68 ms
23,924 KB
testcase_22 AC 67 ms
21,900 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.Collections.Generic;
using System.Text;
using System.Linq;


class Program
{
    public void Proc()
    {
        Reader.IsDebug = false;
        int[] pos1 = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
        int[] pos2 = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();

        decimal kyori = Math.Abs(pos1[0] - pos2[0]) + Math.Abs(pos1[1] - pos2[1]);

        Console.WriteLine(kyori / 2);

    }

    public class Reader
    {
        public static bool IsDebug = true;
        private static String PlainInput = @"





0 0
3 0





";
        private static System.IO.StringReader Sr = null;
        public static string ReadLine()
        {
            if (IsDebug)
            {
                if (Sr == null)
                {
                    Sr = new System.IO.StringReader(PlainInput.Trim());
                }
                return Sr.ReadLine();
            }
            else
            {
                return Console.ReadLine();
            }
        }
    }
    static void Main()
    {
        Program prg = new Program();
        prg.Proc();
    }
}
0