結果
| 問題 |
No.2768 Password Crack
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-16 20:07:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 28,016 KB |
| 平均クエリ数 | 1.23 |
| 最終ジャッジ日時 | 2024-07-16 20:07:15 |
| 合計ジャッジ時間 | 9,148 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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),flush=True)
n_raw=input()
n=int(n_raw)
if n==1:
ans[j]=alp[i]
skip.add(j)
print("!","".join(ans),flush=True)