結果

問題 No.1047 Zero (Novice)
ユーザー curryudon08
提出日時 2020-07-28 10:50:32
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 647 ms
コンパイル使用メモリ 105,176 KB
実行使用メモリ 26,252 KB
最終ジャッジ日時 2024-06-28 20:35:12
合計ジャッジ時間 1,731 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 13 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _1047
{
    class Program
    {
        static void Main(string[] args)
        {
            var _ = Console.ReadLine().Split();
            var a = long.Parse(_[0]);
            var b = long.Parse(_[1]);

            if(b == 0){
                Console.WriteLine(2);
            }else if(a == -1){
                Console.WriteLine(1);
            }else{
                Console.WriteLine(-1);
            }
        }
    }
}
0