結果

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

ソースコード

diff #

alpha = input().strip()
used = set(list("abcdefghijklmnopqrstuvwxyz"))
used.discard(alpha)
print("?", alpha+alpha, flush=True)
while True:
    res,res2 = input().strip().split()
    if res=="!":
        exit()
    used.discard(res2[1])
    out = res2[1]+alpha
    print("?", out, flush=True)
0