結果

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

ソースコード

diff #

a = input()

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

while True:
  res, sn = input().split()
  if res == '!':
    exit()
  c1, c2 = sn
  assert c1 == a
  print('?', f'{c2}{a}', flush=True)
0