結果
問題 |
No.2768 Password Crack
|
ユーザー |
|
提出日時 | 2025-02-25 14:20:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 393 ms |
コンパイル使用メモリ | 82,732 KB |
実行使用メモリ | 94,560 KB |
平均クエリ数 | 773.87 |
最終ジャッジ日時 | 2025-02-25 14:20:17 |
合計ジャッジ時間 | 8,941 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 2 WA * 25 RE * 2 |
ソースコード
N = int(input()) ans = [] for i in range(N): now = 0 for c in range(25): u = chr(ord("a") + c) print("?","a" * c + str(u) + "a" * (N - c - 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))