結果

問題 No.2925 2-Letter Shiritori
ユーザー momoyuu
提出日時 2024-10-13 17:46:13
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 473 bytes
コンパイル時間 876 ms
コンパイル使用メモリ 94,404 KB
実行使用メモリ 25,324 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-13 17:46:17
合計ジャッジ時間 2,566 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;
using ll = long long;

void say(string s){
    cout<<"? "<<s<<endl;
}
int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    char c;
    cin>>c;
    string s = "";
    s += c;
    s += c;
    say(s);
    while(true){
        string t;
        cin>>t;
        if(t!="?") return 0;
        cin>>t;
        string s = "";
        s += t[1];
        s += c;
        say(s);
    }
}
0