結果
| 問題 | No.2925 2-Letter Shiritori | 
| コンテスト | |
| ユーザー |  startcpp | 
| 提出日時 | 2024-10-12 16:03:12 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 56 ms / 2,000 ms | 
| コード長 | 656 bytes | 
| コンパイル時間 | 787 ms | 
| コンパイル使用メモリ | 83,644 KB | 
| 実行使用メモリ | 25,196 KB | 
| 平均クエリ数 | 26.00 | 
| 最終ジャッジ日時 | 2024-10-12 16:03:15 | 
| 合計ジャッジ時間 | 2,539 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 10 | 
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <tuple>
#include <cstdio>
#include <cmath>
#include <cassert>
#define rep(i, n) for(i = 0; i < n; i++)
#define int long long
using namespace std;
signed main() {
    string s;
    getline(cin, s);
    char alpha = s[0];
    cout << "? " << alpha << alpha << endl;
    cout.flush();
    while (true) {
        string res;
        getline(cin, res);
        if (res[0] == '!') { return 0; }
        cout << "? " << res[3] << alpha << endl;
        cout.flush();
    } 
    return 0;
}
            
            
            
        