結果

問題 No.780 オフ会
ユーザー bluemeganebluemegane
提出日時 2019-01-16 11:46:14
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 2,723 ms
コンパイル使用メモリ 99,000 KB
実行使用メモリ 22,788 KB
最終ジャッジ日時 2023-09-09 23:08:51
合計ジャッジ時間 4,392 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,664 KB
testcase_01 AC 57 ms
20,716 KB
testcase_02 AC 57 ms
20,740 KB
testcase_03 AC 58 ms
22,752 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 57 ms
20,688 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 57 ms
22,788 KB
testcase_10 AC 57 ms
20,740 KB
testcase_11 WA -
testcase_12 AC 57 ms
22,724 KB
testcase_13 AC 57 ms
20,808 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 57 ms
22,780 KB
testcase_17 AC 58 ms
22,660 KB
testcase_18 WA -
testcase_19 AC 58 ms
20,620 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var a = int.Parse(line[0]);
        var b = int.Parse(line[1]);
        var w = b - a - 1;
        if (w >= 0) { Console.WriteLine("YES\n0"); }
        else { Console.WriteLine("NO\n{0}",-w); }
    }
}

0