結果

問題 No.2768 Password Crack
ユーザー detteiuudetteiuu
提出日時 2024-05-31 21:51:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 225 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 81,936 KB
実行使用メモリ 93,988 KB
平均クエリ数 1785.17
最終ジャッジ日時 2024-05-31 21:51:12
合計ジャッジ時間 7,325 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
70,356 KB
testcase_01 AC 61 ms
69,612 KB
testcase_02 AC 218 ms
93,616 KB
testcase_03 AC 223 ms
93,572 KB
testcase_04 AC 206 ms
93,184 KB
testcase_05 AC 86 ms
76,368 KB
testcase_06 AC 197 ms
93,988 KB
testcase_07 AC 197 ms
93,040 KB
testcase_08 AC 116 ms
81,608 KB
testcase_09 AC 209 ms
92,952 KB
testcase_10 AC 224 ms
93,596 KB
testcase_11 AC 215 ms
93,428 KB
testcase_12 AC 203 ms
93,344 KB
testcase_13 AC 202 ms
93,800 KB
testcase_14 AC 202 ms
93,152 KB
testcase_15 AC 199 ms
93,604 KB
testcase_16 AC 225 ms
92,896 KB
testcase_17 AC 204 ms
93,144 KB
testcase_18 AC 209 ms
93,424 KB
testcase_19 AC 158 ms
93,392 KB
testcase_20 AC 164 ms
93,480 KB
testcase_21 AC 222 ms
93,144 KB
testcase_22 AC 198 ms
93,332 KB
testcase_23 AC 87 ms
77,848 KB
testcase_24 AC 126 ms
87,104 KB
testcase_25 AC 201 ms
93,480 KB
testcase_26 AC 129 ms
87,428 KB
testcase_27 AC 194 ms
93,540 KB
testcase_28 AC 87 ms
78,816 KB
testcase_29 AC 105 ms
83,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

T = ["a"]*N
ans = []
for i in range(N):
    A = []
    for j in range(25):
        T[i] = chr(ord("a")+j)
        print("?", "".join(T))
        A.append(int(input()))
    T[i] = "a"
    if len(set(A)) == 1:
        ans.append("z")
    else:
        for j in range(25):
            S = sorted(list(set(A)))
            if A[j] == S[1]:
                ans.append(chr(ord("a")+j))
                break

print("!", "".join(ans))
0