結果

問題 No.2768 Password Crack
ユーザー miho-4miho-4
提出日時 2024-05-31 22:04:08
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 255 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 94,716 KB
平均クエリ数 1804.07
最終ジャッジ日時 2024-05-31 22:04:18
合計ジャッジ時間 8,897 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
70,968 KB
testcase_01 AC 57 ms
70,848 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 85 ms
76,000 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 101 ms
81,640 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 153 ms
93,700 KB
testcase_20 AC 167 ms
93,908 KB
testcase_21 RE -
testcase_22 AC 186 ms
93,588 KB
testcase_23 AC 87 ms
78,444 KB
testcase_24 AC 132 ms
87,516 KB
testcase_25 AC 198 ms
93,108 KB
testcase_26 AC 160 ms
93,772 KB
testcase_27 AC 180 ms
93,688 KB
testcase_28 AC 92 ms
79,580 KB
testcase_29 AC 107 ms
83,104 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
  ans[i]=chr(97+tmp)

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