結果
問題 |
No.3108 Luke or Bishop
|
ユーザー |
![]() |
提出日時 | 2025-04-19 08:31:12 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 500 bytes |
コンパイル時間 | 3,313 ms |
コンパイル使用メモリ | 272,088 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-04-19 08:31:16 |
合計ジャッジ時間 | 4,416 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 WA * 1 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; const int iinf = 1e9; const ll inf = 1e18; template<typename T> ostream& operator<<(ostream &o, vector<T> v) { for (int i = 0; i < v.size(); i++) o << v[i] << (i+1<v.size()?" ":""); return o; } int main() { cin.tie(0)->sync_with_stdio(false); int gx, gy; cin >> gx >> gy; if (gx == 0 || gy == 0 || gx == gy || gx == -gy) { cout << 1 << endl; } else { cout << 2 << endl; } }