結果

問題 No.2925 2-Letter Shiritori
ユーザー forest3
提出日時 2025-02-13 16:33:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 1,489 ms
コンパイル使用メモリ 162,216 KB
実行使用メモリ 25,832 KB
平均クエリ数 26.00
最終ジャッジ日時 2025-02-13 16:33:25
合計ジャッジ時間 3,326 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#define rep(i, n) for( int i = 0; i < n; i++ )
using ll = long long;

int main() {
	char c;
	cin >> c;
	cin.ignore(numeric_limits<streamsize>::max(), '\n');
	cout << "? " << c << c << endl;
	while(1) {
		string t;
		getline(cin, t);
		if(t[0] == '!') break;
		char cc = t[3];
		cout << "? " << cc << c << endl;
	}
}
0