結果
| 問題 | No.2925 2-Letter Shiritori | 
| コンテスト | |
| ユーザー |  YuuuT | 
| 提出日時 | 2024-10-12 16:25:47 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 113 ms / 2,000 ms | 
| コード長 | 797 bytes | 
| コンパイル時間 | 198 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 71,624 KB | 
| 平均クエリ数 | 26.00 | 
| 最終ジャッジ日時 | 2024-10-12 16:25:50 | 
| 合計ジャッジ時間 | 2,713 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 10 | 
ソースコード
# 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"
a = A
while True:
    S = a + A
    used.add(S)
    print("?",S,flush=True)
    f,a = input().split()
    if f=="!": exit()
    a = a[1]
            
            
            
        