結果

問題 No.1306 Exactly 2 Digits
ユーザー KKT89KKT89
提出日時 2020-12-03 00:45:45
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 4,023 ms
コンパイル使用メモリ 210,620 KB
最終ジャッジ日時 2025-01-16 13:42:30
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 121
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize ("O3")
#pragma GCC target ("avx")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;

int main(){
    int n; cin >> n;
    if(n==2){ // 出力周り確認
        cout << "? 1 2" << endl;
        int a,b; cin >> a >> b;
        if(a==-1){
            cout << "! 2 3" << endl;
        }
        else{
            cout << "! 3 2" << endl;
        }
        return 0;
    }
}
0