結果
| 問題 | No.3108 Luke or Bishop |
| コンテスト | |
| ユーザー |
ruase_
|
| 提出日時 | 2025-08-15 10:32:13 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 882 ms |
| コンパイル使用メモリ | 161,840 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-14 01:19:08 |
| 合計ジャッジ時間 | 2,338 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 5 |
ソースコード
# include <iostream>
# include <iomanip>
# include <algorithm>
using namespace std;
int main()
{
int gx, gy;
cin >> gx >> gy;
int ans = 0;
if (gx == 0 && gy == 0) {
ans = 0;
} else if (gx == gy || gx==0 || gy == 0) {
ans = 1;
} else {
ans = 2;
}
cout << ans << endl;
}
ruase_