結果

問題 No.934 Explosive energy drink
ユーザー otsuri_114514otsuri_114514
提出日時 2019-11-29 22:41:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 726 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 24,808 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 18:52:32
合計ジャッジ時間 10,063 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
24,204 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 683 ms
24,276 KB
testcase_05 AC 44 ms
24,568 KB
testcase_06 AC 43 ms
24,148 KB
testcase_07 AC 44 ms
24,080 KB
testcase_08 AC 44 ms
24,316 KB
testcase_09 AC 43 ms
24,136 KB
testcase_10 WA -
testcase_11 AC 44 ms
24,040 KB
testcase_12 AC 48 ms
24,484 KB
testcase_13 AC 56 ms
24,596 KB
testcase_14 AC 55 ms
24,680 KB
testcase_15 AC 219 ms
24,544 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 130 ms
24,656 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#import pysnooper
#import numpy
#import os,re,sys,operator
from collections import Counter,deque
#from operator import itemgetter
from itertools import accumulate#,combinations,groupby,combinations_with_replacement,permutations
from sys import stdin,setrecursionlimit
#from bisect import bisect_left,bisect_right
#from copy import deepcopy
#import heapq
#import math
#import string
#from time import time
#from functools import lru_cache
setrecursionlimit(10**6)
input=stdin.readline

n=int(input().rstrip())
a=list(range(1,n+1))
res=set()
for i in range(n):
    print("?",n-1,flush=True)
    print(*a[:i],*a[i+1:],flush=True)
    ans=int(input().rstrip())
    if not ans:
        res.add(a[i])
print("!",len(res))
print(*res)
0