結果

問題 No.934 Explosive energy drink
ユーザー pekempeypekempey
提出日時 2019-11-29 21:53:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 537 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 93,752 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 18:23:36
合計ジャッジ時間 7,663 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
86,756 KB
testcase_01 AC 537 ms
93,604 KB
testcase_02 AC 101 ms
87,060 KB
testcase_03 AC 298 ms
92,676 KB
testcase_04 AC 503 ms
93,736 KB
testcase_05 AC 99 ms
87,308 KB
testcase_06 AC 98 ms
86,804 KB
testcase_07 AC 98 ms
87,000 KB
testcase_08 AC 98 ms
87,116 KB
testcase_09 AC 98 ms
86,564 KB
testcase_10 AC 100 ms
86,748 KB
testcase_11 AC 99 ms
86,440 KB
testcase_12 AC 112 ms
91,904 KB
testcase_13 AC 119 ms
91,804 KB
testcase_14 AC 118 ms
91,920 KB
testcase_15 AC 225 ms
92,108 KB
testcase_16 AC 137 ms
92,316 KB
testcase_17 AC 172 ms
92,632 KB
testcase_18 AC 171 ms
92,680 KB
testcase_19 AC 250 ms
92,976 KB
testcase_20 AC 368 ms
93,416 KB
testcase_21 AC 386 ms
93,128 KB
testcase_22 AC 490 ms
93,752 KB
testcase_23 AC 498 ms
93,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

N = int(input())
ans = []
for i in range(N):
  q = [j+1 for j in range(N) if i != j]
  print('? ' + str(len(q)))
  print(*q)
  sys.stdout.flush()
  if input() == '0':
    ans.append(i + 1)

print('! ' + str(len(ans)))
print(*ans)
sys.stdout.flush()
0