結果

問題 No.2925 2-Letter Shiritori
ユーザー toshiro_yanagi
提出日時 2025-05-10 15:04:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 243 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 28,936 KB
平均クエリ数 3.08
最終ジャッジ日時 2025-05-10 15:04:09
合計ジャッジ時間 2,835 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 1
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

_ = input()
print("? aa")
s = set(["aa"])

while True:
    x = input().split()[1]
    if "WIN" in x:
        break
    if x[0] != "a" or x in s:
        _ = input()
        break
    t = x[-1] + "a"
    s.add(x)
    s.add(t)
    print("?", t)
0