結果
問題 |
No.2925 2-Letter Shiritori
|
ユーザー |
|
提出日時 | 2024-10-12 18:45:31 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 70,984 KB |
平均クエリ数 | 11.00 |
最終ジャッジ日時 | 2024-10-12 18:45:34 |
合計ジャッジ時間 | 2,513 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 10 |
ソースコード
from collections import defaultdict a = input() lib = defaultdict(lambda: False) lib[a*2] = True print("?", a*2) while True: status, s = input().split() if status == "!": break a = s[-1] for i in range(26): string = a + chr(97 + i) if not lib[string]: print("?", string) break