結果
問題 |
No.2925 2-Letter Shiritori
|
ユーザー |
![]() |
提出日時 | 2025-02-01 00:30:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 132 ms / 2,000 ms |
コード長 | 673 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 30,976 KB |
平均クエリ数 | 26.00 |
最終ジャッジ日時 | 2025-02-01 00:30:28 |
合計ジャッジ時間 | 3,754 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
from collections import * from itertools import * from functools import cache, partial from pprint import pprint import sys from typing import Any, Final try: from icecream import ic except ImportError: # Graceful fallback if IceCream isn't installed. ic = lambda *a: None if not a else (a[0] if len(a) == 1 else a) # noqa debug = partial(print, file=sys.stderr) dpprint = partial(pprint, stream=sys.stderr) sys.setrecursionlimit(10**6) MOD = 998244353 alpha = input() # used = [False] * 26 print(f"? {alpha}{alpha}") for _ in range(25): _, query = input().split() char = query[1] # used[ord(char) - ord("a")] = True print(f"? {char}{alpha}")