結果

問題 No.998 Four Integers
ユーザー NoNo
提出日時 2020-02-28 21:34:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 548 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 103,732 KB
実行使用メモリ 22,864 KB
最終ジャッジ日時 2023-08-20 19:08:26
合計ジャッジ時間 4,265 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
20,676 KB
testcase_01 AC 49 ms
22,712 KB
testcase_02 AC 50 ms
20,696 KB
testcase_03 AC 49 ms
18,776 KB
testcase_04 AC 49 ms
22,608 KB
testcase_05 AC 51 ms
20,596 KB
testcase_06 AC 49 ms
18,640 KB
testcase_07 AC 50 ms
20,664 KB
testcase_08 AC 49 ms
22,716 KB
testcase_09 AC 50 ms
20,568 KB
testcase_10 AC 51 ms
22,864 KB
testcase_11 AC 48 ms
20,740 KB
testcase_12 AC 50 ms
22,756 KB
testcase_13 AC 49 ms
20,820 KB
testcase_14 AC 49 ms
22,816 KB
testcase_15 AC 49 ms
20,584 KB
testcase_16 AC 50 ms
20,892 KB
testcase_17 AC 49 ms
20,820 KB
testcase_18 AC 49 ms
20,728 KB
testcase_19 AC 50 ms
20,608 KB
testcase_20 AC 49 ms
20,768 KB
testcase_21 AC 51 ms
20,728 KB
testcase_22 AC 51 ms
20,672 KB
testcase_23 AC 49 ms
20,724 KB
testcase_24 AC 50 ms
20,856 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 a
{
    class a
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine().Split();
            int[] a = { int.Parse(ss[0]) , int.Parse(ss[1]) , int.Parse(ss[2]) , int.Parse(ss[3]) };
            Array.Sort(a);
            for (int i = 1; i < 4; i++)
            {
                if (a[i] != a[i - 1] + 1)
                {
                    Console.WriteLine("No");
                    return;
                }
            }
            Console.WriteLine("Yes");
        }
    }
}
0