結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-31 21:37:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 407 bytes |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 94,756 KB |
| 平均クエリ数 | 1784.17 |
| 最終ジャッジ日時 | 2024-12-20 22:46:37 |
| 合計ジャッジ時間 | 12,322 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 29 |
ソースコード
n = int(input())
S = ["a"] * n
for i in range(1, n + 1):
mi = 1 << 30
ma = -1
ss = "z"
for j in range(25):
s = chr(97 + j)
S[i - 1] = s
print("?", "".join(S), flush=True)
res = int(input())
mi = min(mi, res)
if ma > res:
ma = max(ma, res)
ss = s
if mi == ma:
ss = "z"
S[i] = ss
print("!", "".join(S))