結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-24 16:50:55 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 1,000 ms |
| コード長 | 441 bytes |
| コンパイル時間 | 828 ms |
| コンパイル使用メモリ | 105,728 KB |
| 実行使用メモリ | 19,456 KB |
| 最終ジャッジ日時 | 2024-07-03 20:10:15 |
| 合計ジャッジ時間 | 2,817 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace _0998
{
class Program
{
static void Main(string[] args)
{
var s = Console.ReadLine().Split().Select(x => int.Parse(x)).OrderBy(x => x).ToArray();
if((s[1] == s[0] + 1) && (s[2] == s[1] + 1) && (s[3] == s[2] + 1)){
Console.WriteLine("Yes");
}else{
Console.WriteLine("No");
}
}
}
}