結果
問題 | No.305 鍵(2) |
ユーザー |
👑 |
提出日時 | 2022-01-20 06:54:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 82,708 KB |
実行使用メモリ | 81,580 KB |
平均クエリ数 | 107.15 |
最終ジャッジ日時 | 2024-11-23 14:19:05 |
合計ジャッジ時間 | 3,880 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 11 |
ソースコード
n = 10for i in range(1 << n):print(bin(i)[2:].zfill(n), flush = True)x, l = input().split()if l[0] == "u":exit()if x == "0":bit = bin(i)[2:].zfill(n)breaklst = list(bit)ans = [0] * nfor i in range(n):b = lst[i]for j in range(n):lst[i] = str(j)print(*lst, sep="", flush = True)x = input()if x[0] == "1":ans[i] = str(j)breakans[i] = bprint(*ans, sep="", flush = True)input()