結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-31 22:36:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 225 ms / 2,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 82,380 KB |
| 実行使用メモリ | 93,272 KB |
| 平均クエリ数 | 1785.17 |
| 最終ジャッジ日時 | 2024-12-21 00:21:11 |
| 合計ジャッジ時間 | 7,935 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 29 |
ソースコード
n=int(input())
s=[]
for i in range(n):
a=[]
for j in range(25):
t='a'*i+chr(ord('a')+j)+'a'*(n-i-1)
print('? '+t,flush=True)
a.append(int(input()))
T=True
for j in range(25):
if a.count(a[j])==1:
s.append(chr(ord('a')+j))
T=False
break
if T:
s.append('z')
ans=''.join(map(str,s))
print('! '+ans)