結果
| 問題 | 
                            No.2925 2-Letter Shiritori
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ryuusagi
                         | 
                    
| 提出日時 | 2024-10-12 16:31:12 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 450 bytes | 
| コンパイル時間 | 240 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 86,060 KB | 
| 最終ジャッジ日時 | 2024-10-12 16:31:19 | 
| 合計ジャッジ時間 | 6,570 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | TLE * 1 -- * 1 | 
| other | -- * 10 | 
ソースコード
a = input()
s = set()
while True:
    t = a[-1] * 2
    if t not in s:
        s.add(t)
        print('?', t, flush = True)
    else:
        for i in range(26):
            for j in range(26):
                t = chr(i + ord('a')) + chr(j + ord('a'))
                if t not in s:
                    s.add(t)
                    print('?', t, flush = True)
    b = input()
    if b[0] == '?':
        t, _ = input().split()
    else:
        break
            
            
            
        
            
ryuusagi