結果
| 問題 |
No.2925 2-Letter Shiritori
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-08-28 19:37:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 486 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 69,192 KB |
| 平均クエリ数 | 26.00 |
| 最終ジャッジ日時 | 2024-10-12 14:00:54 |
| 合計ジャッジ時間 | 2,407 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 10 |
ソースコード
written = set()
alpha = input()
assert ord('a') <= ord(alpha) <= ord('z')
pre = alpha
for _ in range(25):
S = pre + alpha
print('?', S, flush=True)
written.add(S)
if _ == 25:
break
cmd, T = input().split()
if cmd == '?':
assert len(T) == 2
assert all(ord('a') <= ord(t) <= ord('z') for t in T)
assert T not in written
assert S[1] == T[0]
pre = T[1]
if cmd == '!':
exit()
print("?", pre + pre)
cmd, T = input().split()
assert cmd, T == ("!", "LOSE")