結果
| 問題 | No.3108 Luke or Bishop |
| コンテスト | |
| ユーザー |
ruase_
|
| 提出日時 | 2025-08-15 10:32:13 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 983 ms |
| コンパイル使用メモリ | 99,140 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-15 10:32:16 |
| 合計ジャッジ時間 | 2,423 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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_