結果

問題 No.851 テストケース
ユーザー mencottonmencotton
提出日時 2019-07-26 21:41:44
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 3,153 ms
コード長 810 bytes
コンパイル時間 3,017 ms
コンパイル使用メモリ 100,440 KB
実行使用メモリ 24,016 KB
最終ジャッジ日時 2023-09-15 00:52:33
合計ジャッジ時間 4,800 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
19,832 KB
testcase_01 AC 62 ms
21,756 KB
testcase_02 AC 59 ms
21,988 KB
testcase_03 AC 61 ms
24,016 KB
testcase_04 AC 63 ms
23,952 KB
testcase_05 AC 63 ms
23,892 KB
testcase_06 AC 62 ms
21,956 KB
testcase_07 AC 62 ms
23,888 KB
testcase_08 AC 62 ms
21,968 KB
testcase_09 AC 62 ms
21,852 KB
testcase_10 AC 62 ms
23,860 KB
testcase_11 AC 62 ms
19,784 KB
testcase_12 AC 62 ms
23,904 KB
testcase_13 AC 62 ms
21,960 KB
testcase_14 AC 62 ms
23,836 KB
testcase_15 AC 62 ms
21,852 KB
testcase_16 AC 61 ms
21,748 KB
testcase_17 AC 62 ms
23,872 KB
testcase_18 AC 62 ms
21,824 KB
testcase_19 AC 58 ms
21,836 KB
testcase_20 AC 59 ms
23,912 KB
testcase_21 AC 62 ms
21,808 KB
testcase_22 AC 62 ms
23,844 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;

namespace yu_851
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadLine();
            long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
            if (x.Length > 1) Console.WriteLine("\"assert\"");
            else
            {
                long y = long.Parse(Console.ReadLine());
                long z = long.Parse(Console.ReadLine());
                long[] sum = new long[3];
                if (Array.IndexOf(sum, x[0] + y) < 0) sum[0] = x[0] + y;
                if (Array.IndexOf(sum, y + z) < 0) sum[1] = y + z;
                if (Array.IndexOf(sum, z + x[0]) < 0) sum[2] = z + x[0];

                Array.Sort(sum);
                Console.WriteLine(sum[1]);
            }
        }
    }
}
0