結果
| 問題 | No.1047 Zero (Novice) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-02 00:20:07 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 756µs | |
| コード長 | 530 bytes |
| 記録 | |
| コンパイル時間 | 662 ms |
| コンパイル使用メモリ | 113,260 KB |
| 実行使用メモリ | 9,752 KB |
| 最終ジャッジ日時 | 2026-10-14 21:42:02 |
| 合計ジャッジ時間 | 1,962 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <vector>
#include <climits>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <string>
#include <bitset>
#include <utility>
#include <numeric>
#include <queue>
#include <stack>
using ll = long long;
using namespace std;
constexpr int MOD = 1e9 + 7;
constexpr ll MOD_LL = ll(1e9) + 7;
int main(void) {
ll a, b;
cin >> a >> b;
if( b == 0 ) {
cout << 1 << endl;
} else if( b != 0 && a == -1 ) {
cout << 2 << endl;
} else {
cout << -1 << endl;
}
return 0;
}