結果
| 問題 | No.2925 2-Letter Shiritori | 
| コンテスト | |
| ユーザー |  学ぶマン | 
| 提出日時 | 2024-10-12 16:34:07 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 99 ms / 2,000 ms | 
| コード長 | 523 bytes | 
| コンパイル時間 | 159 ms | 
| コンパイル使用メモリ | 82,768 KB | 
| 実行使用メモリ | 69,192 KB | 
| 平均クエリ数 | 26.00 | 
| 最終ジャッジ日時 | 2024-10-12 16:34:09 | 
| 合計ジャッジ時間 | 2,101 ms | 
| ジャッジサーバーID (参考情報) | judge / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 10 | 
ソースコード
import sys, math
sys.set_int_max_str_digits(0)
inf = 1<<60
MOD = 998244353
default = input()
shote = default + default
#material = []
alphas = 'abcdefghijklmnopqrstuvwxyz'
#for s in alphas:
#    if s == default:
#        continue
#    material.append(s + default)
# 'default'でおわるやつでいじめる
#material.append(default + default)
#print(material)
print('?', shote)
while True:
    sign, t = input().split()
    if sign == '?':
        ans = t[-1] + default
        print('?', ans)
    else:
        break
            
            
            
        