結果

問題 No.780 オフ会
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 12:04:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 835 ms
コンパイル使用メモリ 109,956 KB
実行使用メモリ 27,544 KB
最終ジャッジ日時 2024-07-18 05:25:59
合計ジャッジ時間 2,139 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

class Program
{
    public void Solve()
    {
        int[] AB = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
        Console.WriteLine(AB[0] < AB[1] ? "YES" : "NO");
        Console.WriteLine(Math.Abs(AB[0] + 1 - AB[1]));
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0