結果
| 問題 |
No.2819 Binary Binary-Operator
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-26 21:45:38 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 826 bytes |
| コンパイル時間 | 3,024 ms |
| コンパイル使用メモリ | 245,284 KB |
| 実行使用メモリ | 25,808 KB |
| 平均クエリ数 | 4.00 |
| 最終ジャッジ日時 | 2024-07-26 21:45:46 |
| 合計ジャッジ時間 | 7,867 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 64 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1<<30;
const long long INFLL = 1LL<<60;
const int MOD = 998244343;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int x, y, z;
cin >> x >> y;
cout << 3 << endl;
if (x == 0 && y == 0){
cout << 3 << endl;
cout << 0 << " " << 0 << " " << 0 << endl;
}
if (x == 0 && y == 1){
cout << 4 << endl;
cout << 0 << " " << 1 << " " << 1 << " " << 1 << endl;
}
if (x == 1 && y == 0){
cout << 4 << endl;
cout << 1 << " " << 0 << " " << 0 << " " << 0 << endl;
}
if (x == 1 && y == 1){
cout << 3 << endl;
cout << 1 << " " << 1 << " " << 1 << endl;
}
cin >> z;
if (z == 0) cout << 0 << endl;
else cout << 1 << endl;
}