結果
| 問題 |
No.934 Explosive energy drink
|
| コンテスト | |
| ユーザー |
otsuri_114514
|
| 提出日時 | 2019-11-29 22:41:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 726 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,864 KB |
| 平均クエリ数 | 709.58 |
| 最終ジャッジ日時 | 2024-07-16 18:41:54 |
| 合計ジャッジ時間 | 10,613 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 11 |
ソースコード
#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)
otsuri_114514