結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-25 14:15:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 375 bytes |
| コンパイル時間 | 1,916 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 84,220 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2025-02-25 14:15:30 |
| 合計ジャッジ時間 | 8,896 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 29 |
ソースコード
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))