結果

問題 No.2768 Password Crack
ユーザー vwxyz
提出日時 2024-08-09 04:43:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 348 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,864 KB
平均クエリ数 2.00
最終ジャッジ日時 2024-08-09 04:43:29
合計ジャッジ時間 6,916 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
alp=[chr(i) for i in range(97,97+26)]
S=[]
for i in range(N):
    T=["a"]*N
    C=[]
    for a in alp[:25]:
        T[i]=a
        print("?")
        print(*T,sep="")
        C.append(int(input()))
    ma=max(C)
    if C.count(ma)==1:
        S.append(alp[C.index(ma)])
    else:
        S.append(alp[25])
print("!")
print(*S,sep="")
0