結果

問題 No.780 オフ会
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 12:04:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 4,260 ms
コンパイル使用メモリ 102,928 KB
実行使用メモリ 24,104 KB
最終ジャッジ日時 2023-09-25 06:28:02
合計ジャッジ時間 5,223 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,912 KB
testcase_01 AC 62 ms
21,932 KB
testcase_02 AC 61 ms
21,932 KB
testcase_03 AC 60 ms
20,064 KB
testcase_04 AC 60 ms
22,016 KB
testcase_05 AC 61 ms
23,956 KB
testcase_06 AC 60 ms
21,992 KB
testcase_07 AC 60 ms
24,052 KB
testcase_08 AC 60 ms
24,104 KB
testcase_09 AC 59 ms
22,004 KB
testcase_10 AC 60 ms
21,992 KB
testcase_11 AC 60 ms
24,056 KB
testcase_12 AC 62 ms
22,020 KB
testcase_13 AC 61 ms
22,000 KB
testcase_14 AC 60 ms
22,036 KB
testcase_15 AC 62 ms
22,004 KB
testcase_16 AC 61 ms
23,940 KB
testcase_17 AC 61 ms
22,004 KB
testcase_18 AC 61 ms
23,900 KB
testcase_19 AC 61 ms
21,944 KB
testcase_20 AC 60 ms
21,912 KB
testcase_21 AC 60 ms
22,052 KB
testcase_22 AC 60 ms
21,932 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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