結果
| 問題 | No.3108 Luke or Bishop |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-12 12:37:17 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 714 bytes |
| 記録 | |
| コンパイル時間 | 1,274 ms |
| コンパイル使用メモリ | 114,756 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-05-12 12:37:20 |
| 合計ジャッジ時間 | 2,512 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 20 WA * 6 |
ソースコード
#include <vector>
#include <iostream>
#include <string>
#include <ostream>
#include <map>
#include <set>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <list>
#include <regex>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, n) for (int i = 1; i < (n); i++)
#define rrep(i, n) for (int i = 0; i <= (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main()
{
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int x, y;
cin >> x >> y;
if (x != 0 && y != 0 || x == y || (x == 0 && y != 0) || (x != 0 && y == 0))
cout << 1;
else if (x == 0 && y == 0)
cout << 0;
else
cout << 2;
}