結果
問題 | No.1047 Zero (Novice) |
ユーザー |
|
提出日時 | 2020-05-28 01:17:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 1,333 ms |
コンパイル使用メモリ | 93,084 KB |
最終ジャッジ日時 | 2025-01-10 16:02:14 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <stack> #include <map> #include <math.h> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int a,b; cin >> a >> b; if(b==0){ printf("1\n"); } else{ if(a==-1){ printf("2\n"); } else{ printf("-1\n"); } } }