結果

問題 No.934 Explosive energy drink
ユーザー otsuri_114514otsuri_114514
提出日時 2019-11-29 22:49:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 742 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 24,572 KB
平均クエリ数 0.33
最終ジャッジ日時 2023-09-23 18:54:37
合計ジャッジ時間 4,976 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,976 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 646 ms
23,860 KB
testcase_05 AC 41 ms
23,640 KB
testcase_06 AC 39 ms
23,640 KB
testcase_07 AC 39 ms
24,000 KB
testcase_08 AC 37 ms
23,976 KB
testcase_09 AC 37 ms
23,628 KB
testcase_10 WA -
testcase_11 AC 40 ms
23,640 KB
testcase_12 AC 43 ms
24,228 KB
testcase_13 AC 48 ms
23,988 KB
testcase_14 AC 52 ms
24,336 KB
testcase_15 AC 212 ms
24,380 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 123 ms
24,212 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),flush=True)
print(*res,flush=True)
0