結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-04-14 11:51:42 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 468 ms / 2,000 ms | 
| コード長 | 556 bytes | 
| コンパイル時間 | 287 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 27,864 KB | 
| 平均クエリ数 | 709.58 | 
| 最終ジャッジ日時 | 2024-07-17 03:25:57 | 
| 合計ジャッジ時間 | 6,608 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
MOD = 10 ** 9 + 7
INF = 10 ** 12
import sys
sys.setrecursionlimit(1000000)
dy = (-1,0,1,0)
dx = (0,1,0,-1)
from  itertools import permutations
from math import gcd
def main():
    n = int(input())
    a = list(range(1,n + 1))
    ans = []
    for j in range(1,n + 1):
        print("? {}".format(n - 1),flush = True)
        print(' '.join([str(i) for i in a if i != j]))
        rep = int(input())
        if rep == 0:
            ans.append(str(j))
    
    print("! {}".format(len(ans)))
    print(' '.join(ans))
if __name__ =='__main__':
    main()  
            
            
            
        