結果

問題 No.2768 Password Crack
ユーザー miho-4miho-4
提出日時 2024-05-31 22:04:59
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 298 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 94,840 KB
平均クエリ数 1159.47
最終ジャッジ日時 2024-05-31 22:05:06
合計ジャッジ時間 6,988 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,344 KB
testcase_01 AC 63 ms
69,104 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 178 ms
93,040 KB
testcase_05 AC 74 ms
71,004 KB
testcase_06 RE -
testcase_07 AC 137 ms
88,240 KB
testcase_08 AC 84 ms
77,268 KB
testcase_09 AC 172 ms
92,884 KB
testcase_10 AC 179 ms
93,188 KB
testcase_11 AC 178 ms
92,944 KB
testcase_12 AC 170 ms
92,672 KB
testcase_13 AC 189 ms
93,304 KB
testcase_14 AC 168 ms
93,944 KB
testcase_15 AC 171 ms
93,268 KB
testcase_16 AC 171 ms
92,804 KB
testcase_17 AC 172 ms
93,340 KB
testcase_18 AC 172 ms
93,796 KB
testcase_19 AC 115 ms
83,948 KB
testcase_20 AC 113 ms
83,908 KB
testcase_21 AC 176 ms
92,924 KB
testcase_22 AC 173 ms
93,204 KB
testcase_23 AC 91 ms
76,624 KB
testcase_24 AC 107 ms
82,324 KB
testcase_25 AC 165 ms
93,032 KB
testcase_26 AC 106 ms
81,072 KB
testcase_27 AC 160 ms
93,412 KB
testcase_28 AC 85 ms
76,320 KB
testcase_29 AC 90 ms
78,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
ans=["a"]*N

for i in range(N):
  x=0
  tmp=0
  flag=0
  for j in range(26):
    ans[i]=chr(97+j)
    t="".join(ans)
    print("?",t,flush=1)
    n=int(input())
    if n>x:
      x=n
      tmp=j
      if flag:
        break
      flag=1
  ans[i]=chr(97+tmp)

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