結果

問題 No.2819 Binary Binary-Operator
ユーザー GOTKAKO
提出日時 2024-07-26 21:25:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 2,594 ms
コンパイル使用メモリ 192,940 KB
最終ジャッジ日時 2025-02-23 18:22:23
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 64
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int X,Y; cin >> X >> Y;
    cout << 4 << endl;
    cout << X << " " << Y << " " << Y << " " << Y << endl;
    int t; cin >> t;
    if(t == X) cout << X << endl;
    else cout << (X^1) << endl;
}
0