結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-16 19:59:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 83,936 KB |
| 平均クエリ数 | 1.23 |
| 最終ジャッジ日時 | 2024-07-16 19:59:43 |
| 合計ジャッジ時間 | 10,831 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | AC * 1 RE * 28 |
ソースコード
#flush=True
N=int(input())
D=dict()
alp="abcdefghijklmnopqrstuvwxyz"
skip=set()
ans=["." for i in range(N)]
for i in range(26):
for j in range(N):
if j in skip:
continue
L=["." for k in range(N)]
L[j]=alp[i]
print("?","".join(L))
n_raw=input()
n=int(n_raw)
if n==1:
ans[j]=alp[i]
skip.add(j)
print("!","".join(ans),flush=True)