結果

問題 No.3347 Guess The Array
コンテスト
ユーザー ponjuice
提出日時 2025-10-25 14:53:11
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 446 bytes
コンパイル時間 8,487 ms
コンパイル使用メモリ 354,824 KB
実行使用メモリ 26,240 KB
平均クエリ数 1.04
最終ジャッジ日時 2025-11-13 20:51:25
合計ジャッジ時間 13,868 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 24 TLE * 1 -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(int argc, char** argv) {
    registerValidation(argc, argv);

    int n = inf.readInt(1, 500, "n");
    inf.readEoln();
    cout << "? 1 1" << endl;

    string s = inf.readWord("Yes|No", "response");
    inf.readEoln();

    cout << "! ";
    for (int i = 0; i < n; i++) {
        cout << "1" << (i + 1 == n ? "\n" : " ");
    }
    cout << flush;

    inf.readEof();
}
0