結果
| 問題 | No.2925 2-Letter Shiritori |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2024-10-12 14:38:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 2,000 ms |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 72,096 KB |
| 平均クエリ数 | 26.00 |
| 最終ジャッジ日時 | 2026-04-29 15:06:50 |
| 合計ジャッジ時間 | 2,406 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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