結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
![]() |
提出日時 | 2024-10-12 15:32:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 886 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 82,292 KB |
実行使用メモリ | 73,344 KB |
平均クエリ数 | 15.83 |
最終ジャッジ日時 | 2024-10-12 15:33:16 |
合計ジャッジ時間 | 2,353 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 98 ms
71,964 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
# oj t -c "python3 main.py" import sys,math from collections import defaultdict,deque from itertools import combinations,permutations,accumulate,product from bisect import bisect_left,bisect_right from heapq import heappop,heappush,heapify #from more_itertools import distinct_permutations,distinct_combinations #from sortedcontainers import SortedList,SortedSet def input():return sys.stdin.readline().rstrip() def ii(): return int(input()) def ms(): return map(int, input().split()) def li(): return list(map(int,input().split())) inf = pow(10,18) mod = 998244353 #///////////////////////////////// a = input() used = set() alp = "abcdefghijklmnopqrstuvwxyz" while True: S = a for i in range(26): if S+alp[i] not in used: S += alp[i] break used.add(S) print("?",S,flush=True) f,a = input().split() if f=="!": exit() a = a[1]