結果

問題 No.934 Explosive energy drink
ユーザー 👑 rin204rin204
提出日時 2022-01-18 23:55:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 502 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 95,080 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-08-15 07:45:51
合計ジャッジ時間 7,681 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
87,148 KB
testcase_01 AC 502 ms
94,524 KB
testcase_02 AC 100 ms
87,744 KB
testcase_03 AC 299 ms
94,196 KB
testcase_04 AC 495 ms
94,544 KB
testcase_05 AC 97 ms
87,224 KB
testcase_06 AC 95 ms
87,368 KB
testcase_07 AC 96 ms
87,656 KB
testcase_08 AC 97 ms
87,088 KB
testcase_09 AC 97 ms
87,172 KB
testcase_10 AC 97 ms
87,828 KB
testcase_11 AC 100 ms
87,632 KB
testcase_12 AC 115 ms
92,532 KB
testcase_13 AC 119 ms
92,704 KB
testcase_14 AC 123 ms
92,816 KB
testcase_15 AC 236 ms
94,104 KB
testcase_16 AC 145 ms
93,444 KB
testcase_17 AC 187 ms
94,196 KB
testcase_18 AC 190 ms
93,860 KB
testcase_19 AC 274 ms
95,080 KB
testcase_20 AC 349 ms
93,728 KB
testcase_21 AC 369 ms
94,400 KB
testcase_22 AC 472 ms
94,160 KB
testcase_23 AC 489 ms
94,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = []
for i in range(1, n + 1):
    A = []
    for j in range(1, n + 1):
        if i != j:
            A.append(j)
    print("?", n - 1, flush = True)
    print(*A, flush = True)
    ret = int(input())
    if ret == 0:
        ans.append(i)
        
print("!", len(ans), flush = True)
print(*ans)
0