結果
| 問題 | No.2768 Password Crack |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-05-31 21:50:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 440 bytes |
| 記録 | |
| コンパイル時間 | 1,074 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 94,136 KB |
| 平均クエリ数 | 1785.17 |
| 最終ジャッジ日時 | 2024-12-20 23:10:46 |
| 合計ジャッジ時間 | 12,425 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 29 |
ソースコード
N = int(input())
T = ["a"]*N
ans = []
for i in range(N):
A = []
for j in range(25):
T[i] = chr(ord("a")+j)
print("?", "".join(T))
A.append(int(input()))
T[i] = "a"
if len(set(A)) == 1:
ans.append("z")
else:
for j in range(25):
S = sorted(list(set(A)))
if A[j] == S[1]:
ans.append(chr(ord("a")+j))
break
print("".join(ans))
detteiuu