結果

問題 No.2819 Binary Binary-Operator
ユーザー 🦠みどりむし🦠みどりむし
提出日時 2024-07-26 14:28:00
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 864 bytes
コンパイル時間 2,712 ms
コンパイル使用メモリ 242,476 KB
実行使用メモリ 25,964 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-26 15:46:15
合計ジャッジ時間 6,676 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
25,196 KB
testcase_01 WA -
testcase_02 AC 21 ms
24,556 KB
testcase_03 WA -
testcase_04 AC 19 ms
24,812 KB
testcase_05 AC 19 ms
25,196 KB
testcase_06 AC 20 ms
25,196 KB
testcase_07 AC 19 ms
24,940 KB
testcase_08 AC 20 ms
24,812 KB
testcase_09 WA -
testcase_10 AC 19 ms
25,196 KB
testcase_11 WA -
testcase_12 AC 19 ms
25,196 KB
testcase_13 AC 19 ms
24,812 KB
testcase_14 AC 19 ms
25,580 KB
testcase_15 AC 20 ms
25,196 KB
testcase_16 AC 20 ms
25,196 KB
testcase_17 WA -
testcase_18 AC 19 ms
25,196 KB
testcase_19 WA -
testcase_20 AC 20 ms
25,324 KB
testcase_21 AC 20 ms
24,940 KB
testcase_22 AC 19 ms
24,812 KB
testcase_23 AC 20 ms
25,196 KB
testcase_24 AC 19 ms
24,556 KB
testcase_25 WA -
testcase_26 AC 19 ms
25,196 KB
testcase_27 WA -
testcase_28 AC 20 ms
24,940 KB
testcase_29 AC 19 ms
25,196 KB
testcase_30 AC 19 ms
24,940 KB
testcase_31 AC 26 ms
25,196 KB
testcase_32 AC 19 ms
24,812 KB
testcase_33 AC 20 ms
24,940 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 21 ms
24,812 KB
testcase_37 AC 20 ms
25,440 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 19 ms
24,940 KB
testcase_41 AC 19 ms
25,196 KB
testcase_42 AC 19 ms
24,812 KB
testcase_43 AC 19 ms
25,580 KB
testcase_44 AC 20 ms
24,940 KB
testcase_45 AC 20 ms
24,812 KB
testcase_46 AC 21 ms
24,812 KB
testcase_47 AC 22 ms
24,812 KB
testcase_48 AC 20 ms
24,556 KB
testcase_49 AC 22 ms
24,556 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 23 ms
24,940 KB
testcase_53 AC 22 ms
25,196 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 23 ms
24,556 KB
testcase_57 AC 22 ms
24,556 KB
testcase_58 AC 19 ms
24,812 KB
testcase_59 AC 22 ms
24,812 KB
testcase_60 AC 21 ms
24,556 KB
testcase_61 AC 22 ms
25,196 KB
testcase_62 AC 22 ms
24,812 KB
testcase_63 AC 21 ms
25,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
using pll=pair<ll,ll>;
using tll=tuple<ll,ll,ll>;
using ld=long double;
const ll INF=(1ll<<60);
#define rep(i,n) for (ll i=0;i<(ll)(n);i++)
#define replr(i,l,r) for (ll i=(ll)(l);i<(ll)(r);i++)
#define all(v) v.begin(),v.end()
#define len(v) ((ll)v.size())
template<class T> inline bool chmin(T &a,T b){
    if(a>b){
        a=b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T &a,T b){
    if(a<b){
        a=b;
        return true;
    }
    return false;
}
int main(){
    ios::sync_with_stdio(false);
    ll l,r;
    cin >> l >> r;
    cout << "3\n";
    cout << l << ' ' << r << ' ' << r << '\n';
    cout.flush();
    ll res;
    cin >> res;
    if(l==res) cout << l << '\n';
    else cout << 1-l << '\n';
    cout.flush();
}
0