結果
問題 |
No.2768 Password Crack
|
ユーザー |
|
提出日時 | 2025-02-25 14:24:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 248 ms / 2,000 ms |
コード長 | 516 bytes |
コンパイル時間 | 463 ms |
コンパイル使用メモリ | 81,924 KB |
実行使用メモリ | 94,300 KB |
平均クエリ数 | 955.37 |
最終ジャッジ日時 | 2025-02-25 14:24:14 |
合計ジャッジ時間 | 6,975 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 29 |
ソースコード
N = int(input()) ans = [] for i in range(N): now = 0 for c in range(25): u = chr(ord("a") + c) print("?","a" * i + u + "a" * (N - i - 1)) d = int(input()) if c == 0: now = d else: if d == now: pass elif d < now: ans.append("a") break else: ans.append(u) break if len(ans) < i + 1: ans.append("z") print("!","".join(ans))