結果
| 問題 | No.2925 2-Letter Shiritori | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-14 13:49:16 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 63 ms / 2,000 ms | 
| コード長 | 548 bytes | 
| コンパイル時間 | 2,089 ms | 
| コンパイル使用メモリ | 196,704 KB | 
| 最終ジャッジ日時 | 2025-02-24 19:28:18 | 
| ジャッジサーバーID (参考情報) | judge5 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 10 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#include<atcoder/modint>
using namespace atcoder;
using mint = modint998244353;
void solve() {
    char C;
    cin>>C;
    cout<<"? "<<C<<C<<endl;
    string S;
    getline(cin,S);
    while(1){
        getline(cin,S);
        if(S[0]=='!')return;
        S=S.substr(2,2);
        reverse(S.begin(),S.end());
        cout<<"? "<<S<<endl;
    }
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    // ll T;
    // cin>>T;
    // while(T--)
    solve();
}
            
            
            
        