結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
|
提出日時 | 2024-10-12 15:53:43 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 440 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 81,992 KB |
平均クエリ数 | 27.00 |
最終ジャッジ日時 | 2024-10-12 15:53:47 |
合計ジャッジ時間 | 2,836 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 10 |
ソースコード
a = str(input()) ans = set([]) print("?", a * 2) ans.add(a * 2) while 1: _, S = map(str, input().split()) if S in ans: print("!", "WIN") exit() else: ans.add(S) print("?", S[-1] + a) ans.add(S[-1] + a)