結果
| 問題 |
No.3108 Luke or Bishop
|
| コンテスト | |
| ユーザー |
hiromi_ayase
|
| 提出日時 | 2025-04-18 20:27:39 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 555 bytes |
| コンパイル時間 | 5,758 ms |
| コンパイル使用メモリ | 332,700 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-18 20:27:47 |
| 合計ジャッジ時間 | 7,095 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(0);
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;
int main() {
FAST_IO
auto ans = 0LL;
i64 Gx, Gy;
cin >> Gx >> Gy;
if (abs(Gx) == abs(Gy)) {
ans = 1;
} else if (Gx == 0 || Gy == 0) {
ans = 1;
} else {
ans = 2;
}
cout << ans << endl;
}
hiromi_ayase