結果

問題 No.2819 Binary Binary-Operator
ユーザー InTheBloomInTheBloom
提出日時 2024-07-26 21:43:07
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 2,599 ms
コンパイル使用メモリ 79,108 KB
実行使用メモリ 25,452 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-26 21:43:26
合計ジャッジ時間 5,912 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 64
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main () {
    int X, Y; cin >> X >> Y;

    cout << 4 << "\n";
    cout << X << " " << Y << " " << Y << " " << Y << "\n";
    cout << flush;

    int t; cin >> t;
    int ans = X;
    if (t != X) ans = t;

    cout << ans << "\n";
    cout << flush;
}
0