結果
| 問題 |
No.2819 Binary Binary-Operator
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-26 22:02:22 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 794 bytes |
| コンパイル時間 | 3,135 ms |
| コンパイル使用メモリ | 244,360 KB |
| 実行使用メモリ | 25,452 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-26 22:02:31 |
| 合計ジャッジ時間 | 8,492 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 64 |
ソースコード
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << 4 << endl;
if (x == 0 && y == 0) {
cout << 0 << " " << 0 << " " << 0 << " " << 0 << endl;
int res;
cin >> res;
cout << res << endl;
} else if (x == 1 && y == 1) {
cout << 1 << " " << 1 << " " << 1 << " " << 1 << endl;
int res;
cin >> res;
cout << res << endl;
} else if (x == 0 && y == 1) {
cout << 0 << " " << 1 << " " << 1 << " " << 1 << endl;
int res;
cin >> res;
cout << res << endl;
} else if (x == 1 && y == 0) {
cout << 1 << " " << 0 << " " << 0 << " " << 0 << endl;
int res;
cin >> res;
cout << res << endl;
}
}