結果

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

ソースコード

diff #

import sys


def input():
    return sys.stdin.readline().strip()


def main():
    a = input()
    print("?", a * 2, flush=True)

    while True:
        a, b = input().split()
        if a == "!":
            break
        print("?", b[::-1], flush=True)


if __name__ == "__main__":
    main()
0