結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 30 ms
27,144 KB
testcase_02 AC 31 ms
25,104 KB
testcase_03 AC 29 ms
25,100 KB
testcase_04 AC 31 ms
25,012 KB
testcase_05 AC 31 ms
25,260 KB
testcase_06 AC 30 ms
25,268 KB
testcase_07 AC 31 ms
25,104 KB
testcase_08 AC 30 ms
25,232 KB
testcase_09 AC 31 ms
25,104 KB
testcase_10 AC 30 ms
25,264 KB
testcase_11 AC 31 ms
25,232 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 30 ms
25,228 KB
testcase_18 AC 30 ms
25,516 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 30 ms
25,100 KB
testcase_22 AC 29 ms
23,216 KB
testcase_23 AC 30 ms
27,288 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] ? "Yes" : "No");
        }
    }
}
0