結果

問題 No.2925 2-Letter Shiritori
ユーザー YuuuT
提出日時 2024-10-12 15:34:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 793 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 155,608 KB
平均クエリ数 11.83
最終ジャッジ日時 2024-10-12 15:34:56
合計ジャッジ時間 2,331 ms
ジャッジサーバーID
(参考情報)
judge1 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

# oj t -c "python3 main.py"
import sys,math
from collections import defaultdict,deque
from itertools import combinations,permutations,accumulate,product
from bisect import bisect_left,bisect_right
from heapq import heappop,heappush,heapify
#from more_itertools import distinct_permutations,distinct_combinations
#from sortedcontainers import SortedList,SortedSet
def input():return sys.stdin.readline().rstrip()
def ii(): return int(input())
def ms(): return map(int, input().split())
def li(): return list(map(int,input().split()))
inf = pow(10,18)
mod = 998244353
#/////////////////////////////////
a = input()
used = set()
alp = "abcdefghijklmnopqrstuvwxyz"
while True:
    S = a + "a"
    used.add(S)
    print("?",S,flush=True)
    f,a = input().split()
    if f=="!": exit()
    a = a[1]
0