結果
| 問題 |
No.2925 2-Letter Shiritori
|
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2024-10-12 14:38:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 2,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 82,156 KB |
| 実行使用メモリ | 69,248 KB |
| 平均クエリ数 | 26.00 |
| 最終ジャッジ日時 | 2024-10-12 14:38:45 |
| 合計ジャッジ時間 | 2,645 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
A=input()
abc="abcdefghijklmnopqrstuvwxyz"
print('?',A+A)
Set=set(A)
q=list(map(str,input().split()))
while True:
for i in range(len(abc)):
if abc[i] in Set:
continue
print('?', q[1][-1]+A)
Set.add(abc[i])
break
q=list(map(str,input().split()))
if q[0]=="!":
exit(0)
nikoro256