結果
| 問題 | No.2925 2-Letter Shiritori |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-14 13:49:16 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 2,000 ms |
| コード長 | 548 bytes |
| 記録 | |
| コンパイル時間 | 1,063 ms |
| コンパイル使用メモリ | 217,000 KB |
| 実行使用メモリ | 9,212 KB |
| 平均クエリ数 | 26.00 |
| 最終ジャッジ日時 | 2026-07-05 23:25:24 |
| 合計ジャッジ時間 | 2,607 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}