結果

問題 No.2925 2-Letter Shiritori
ユーザー pengin_2000
提出日時 2024-10-12 16:34:58
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 27,648 KB
実行使用メモリ 25,196 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-12 16:35:00
合計ジャッジ時間 1,767 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	char c, s[4];
	scanf("%s", s);
	c = s[0];
	printf("? %c%c\n", c, c);
	fflush(stdout);
	for (;;)
	{
		scanf("%s", s);
		if (s[0] == '!')
			break;
		scanf("%s", s);
		printf("? %c%c\n", s[1], c);
		fflush(stdout);
	}
	return 0;
}

0