結果

問題 No.1959 Prefix MinMax
ユーザー ikomaikoma
提出日時 2022-05-27 22:53:22
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 410 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 81,832 KB
実行使用メモリ 92,436 KB
平均クエリ数 94.88
最終ジャッジ日時 2023-10-20 21:24:00
合計ジャッジ時間 6,690 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
69,904 KB
testcase_01 AC 66 ms
69,904 KB
testcase_02 AC 61 ms
69,904 KB
testcase_03 AC 64 ms
69,904 KB
testcase_04 AC 65 ms
69,904 KB
testcase_05 AC 69 ms
69,904 KB
testcase_06 AC 71 ms
69,904 KB
testcase_07 AC 146 ms
92,352 KB
testcase_08 AC 142 ms
92,284 KB
testcase_09 AC 142 ms
92,288 KB
testcase_10 AC 142 ms
92,296 KB
testcase_11 AC 142 ms
92,308 KB
testcase_12 AC 145 ms
92,284 KB
testcase_13 AC 149 ms
92,388 KB
testcase_14 AC 145 ms
92,312 KB
testcase_15 AC 150 ms
92,352 KB
testcase_16 AC 144 ms
92,308 KB
testcase_17 AC 143 ms
92,308 KB
testcase_18 AC 145 ms
92,256 KB
testcase_19 AC 142 ms
92,308 KB
testcase_20 AC 146 ms
92,372 KB
testcase_21 AC 143 ms
92,256 KB
testcase_22 AC 144 ms
92,316 KB
testcase_23 AC 143 ms
92,216 KB
testcase_24 AC 153 ms
92,436 KB
testcase_25 AC 143 ms
92,320 KB
testcase_26 AC 144 ms
92,300 KB
testcase_27 AC 142 ms
92,292 KB
testcase_28 AC 140 ms
92,288 KB
testcase_29 AC 141 ms
92,276 KB
testcase_30 AC 142 ms
92,248 KB
testcase_31 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for t in range(T):
    N=int(input())
    A=[0]*(N-1)
    for i in range(0,N-1,2):
        A[i]=1
    ans=[0]*N
    for i in range(10):
        print("?", *A, flush=True)
        B=list(map(int, input().split()))
        ans[0]=B[0]
        for i in range(1,N):
            if B[i-1]!=B[i]:
                ans[i]=B[i]
            else:
                A[i-1]^=1
    print("!", *ans, flush=True)
0