結果
問題 |
No.2925 2-Letter Shiritori
|
ユーザー |
![]() |
提出日時 | 2024-10-12 16:38:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 567 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 71,460 KB |
平均クエリ数 | 6.92 |
最終ジャッジ日時 | 2024-10-12 16:38:58 |
合計ジャッジ時間 | 2,091 ms |
ジャッジサーバーID (参考情報) |
judge / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 10 |
ソースコード
a = input() s = set() while True: t = a[-1] * 2 if t not in s: s.add(t) print('?', t, flush = True) else: c = 0 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) c = 1 break if c: break b = input() if b[0] == '?': _, a = b.split() s.add(a) else: break