結果

問題 No.2925 2-Letter Shiritori
ユーザー lif4635
提出日時 2024-10-13 02:31:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 1,051 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 69,320 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-13 02:31:46
合計ジャッジ時間 2,525 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

"""input"""
#int-input
# input = sys.stdin.readline
def II(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(MI())
#str-input
def SI(): return input()
def MSI(): return input().split()
def SI_L(): return list(SI())
def SI_LI(): return list(map(int, SI()))
#multiple-input
def LLI(n): return [LI() for _ in range(n)]
def LSI(n): return [SI() for _ in range(n)]
#1-indexを0-indexでinput
def MI_1(): return map(lambda x:int(x)-1, input().split())
def TI_1(): return tuple(MI_1())
def LI_1(): return list(MI_1())

a = SI()
print("?",a+a)

while True:
    f,res = input().split()
    if f == "!":
        exit()
    print("?",res[1]+a)
    
    

# n,k = MI()
# h = LI()
# p = LLI(n)

# uf = dsu(n)

# def dis(p,q):
#     return (p[0]-q[0])**2 + (p[1]-q[1])**2


# edge = [set() for i in range(n)]
# for i in range(n):
#     for j in range(n):
#         if h[i] < h[j] and dis(p[i],p[j]) <= k**2:
#             edge[i].add(j)

# ans = 0
# for i in range(n):
#     if edge[i] == set():
#         ans += 1
# print(ans)
0