結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-25 14:15:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 375 bytes |
| コンパイル時間 | 568 ms |
| コンパイル使用メモリ | 82,476 KB |
| 実行使用メモリ | 94,288 KB |
| 平均クエリ数 | 773.87 |
| 最終ジャッジ日時 | 2025-02-25 14:15:57 |
| 合計ジャッジ時間 | 9,944 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 + 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))