結果
問題 |
No.2768 Password Crack
|
ユーザー |
![]() |
提出日時 | 2024-06-02 03:31:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 158 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,848 KB |
平均クエリ数 | 1785.17 |
最終ジャッジ日時 | 2024-12-22 20:24:08 |
合計ジャッジ時間 | 6,463 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 29 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) X=["a"]*N S="bcdefghijklmnopqrstuvwxyz" for i in range(N): A=[] for j in range(25): X[i]=S[j] print("?","".join(X),flush=True) ret=int(input()) A.append(ret) if min(A)==max(A): X[i]="a" else: mind=A.index(max(A)) X[i]=S[mind] print("!","".join(X),flush=True)