結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-05-31 21:51:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 265 ms / 2,000 ms |
| コード長 | 445 bytes |
| コンパイル時間 | 707 ms |
| コンパイル使用メモリ | 82,784 KB |
| 実行使用メモリ | 94,072 KB |
| 平均クエリ数 | 1785.17 |
| 最終ジャッジ日時 | 2024-12-20 23:11:45 |
| 合計ジャッジ時間 | 9,256 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 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