結果

問題 No.1047 Zero (Novice)
ユーザー zeronosu77108
提出日時 2020-05-09 01:27:14
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 117,888 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 18:05:04
合計ジャッジ時間 1,319 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;
using int64 = long long;


int main() {
    int64 a,b;
    cin >> a >> b;
    if (b==0) cout << 1 << endl;
    else if (a==-1) cout << 2 << endl;
    else cout << -1 << endl;
}
0