結果

問題 No.998 Four Integers
ユーザー にぁんにぁん
提出日時 2020-03-10 22:00:49
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 795 ms
コンパイル使用メモリ 109,912 KB
実行使用メモリ 27,416 KB
最終ジャッジ日時 2024-04-27 18:58:14
合計ジャッジ時間 2,406 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 30 ms
25,228 KB
testcase_02 AC 30 ms
27,144 KB
testcase_03 AC 30 ms
25,368 KB
testcase_04 AC 31 ms
27,160 KB
testcase_05 AC 30 ms
25,104 KB
testcase_06 AC 30 ms
25,364 KB
testcase_07 AC 31 ms
25,004 KB
testcase_08 AC 31 ms
27,028 KB
testcase_09 AC 29 ms
25,228 KB
testcase_10 AC 30 ms
27,172 KB
testcase_11 AC 30 ms
25,224 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 31 ms
27,156 KB
testcase_18 AC 30 ms
25,272 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 31 ms
27,160 KB
testcase_22 AC 31 ms
27,272 KB
testcase_23 AC 30 ms
25,136 KB
testcase_24 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] line = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray();
            Array.Sort(line);
            Console.WriteLine(line[0] == line[1] + 1 && line[1] == line[2] + 1 && line[2] == line[3] + 1 ? "Yes" : "No");
        }
    }
}
0