結果

問題 No.934 Explosive energy drink
ユーザー hedwig100hedwig100
提出日時 2020-04-14 11:51:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 374 ms / 2,000 ms
コード長 556 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 10,908 KB
実行使用メモリ 24,848 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-24 03:18:03
合計ジャッジ時間 5,490 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
24,044 KB
testcase_01 AC 374 ms
24,756 KB
testcase_02 AC 33 ms
24,196 KB
testcase_03 AC 193 ms
24,232 KB
testcase_04 AC 369 ms
24,848 KB
testcase_05 AC 34 ms
24,428 KB
testcase_06 AC 32 ms
24,424 KB
testcase_07 AC 39 ms
24,456 KB
testcase_08 AC 36 ms
24,648 KB
testcase_09 AC 36 ms
24,356 KB
testcase_10 AC 37 ms
24,084 KB
testcase_11 AC 34 ms
24,532 KB
testcase_12 AC 36 ms
24,268 KB
testcase_13 AC 40 ms
23,952 KB
testcase_14 AC 41 ms
24,048 KB
testcase_15 AC 134 ms
24,068 KB
testcase_16 AC 58 ms
24,252 KB
testcase_17 AC 88 ms
24,172 KB
testcase_18 AC 88 ms
24,588 KB
testcase_19 AC 150 ms
24,516 KB
testcase_20 AC 244 ms
24,732 KB
testcase_21 AC 261 ms
24,588 KB
testcase_22 AC 367 ms
24,504 KB
testcase_23 AC 370 ms
24,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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()  
0