結果

問題 No.2925 2-Letter Shiritori
ユーザー naut3
提出日時 2024-10-12 18:23:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 27,472 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-12 18:23:35
合計ジャッジ時間 2,377 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

alpha = input()

S = 'abcdefghijklmnopqrstuvwxyz'

print(f'? {alpha}{alpha}', flush=True)

for _ in range(100):
    c, s = input().split()

    if c == '?':
        t = s[1]
        print(f"? {t}{alpha}", flush=True)
    else:
        exit()
0