結果
| 問題 |
No.3108 Luke or Bishop
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2025-05-29 21:43:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 324 bytes |
| コンパイル時間 | 1,798 ms |
| コンパイル使用メモリ | 161,136 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-05-29 21:43:21 |
| 合計ジャッジ時間 | 2,884 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)
int main() {
int gx, gy;
cin >> gx >> gy;
int ans = 1e9, ans1 = 0;
if(gx == 0 || gy == 0) ans = 1;
else ans = 2;
if(gx == gy || gx + gy == 0) ans1 = 1;
else ans1 = 2;
cout << min(ans, ans1) << endl;
}
forest3