結果

問題 No.934 Explosive energy drink
ユーザー momotaros300momotaros300
提出日時 2019-11-30 14:58:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 694 ms / 2,000 ms
コード長 467 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 10,780 KB
実行使用メモリ 25,112 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 19:09:42
合計ジャッジ時間 8,293 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
24,420 KB
testcase_01 AC 688 ms
24,996 KB
testcase_02 AC 46 ms
24,824 KB
testcase_03 AC 339 ms
25,036 KB
testcase_04 AC 682 ms
24,932 KB
testcase_05 AC 47 ms
24,380 KB
testcase_06 AC 45 ms
24,792 KB
testcase_07 AC 46 ms
24,576 KB
testcase_08 AC 47 ms
24,848 KB
testcase_09 AC 45 ms
24,632 KB
testcase_10 AC 46 ms
24,772 KB
testcase_11 AC 49 ms
24,592 KB
testcase_12 AC 50 ms
24,896 KB
testcase_13 AC 56 ms
24,464 KB
testcase_14 AC 61 ms
24,396 KB
testcase_15 AC 227 ms
24,556 KB
testcase_16 AC 83 ms
24,752 KB
testcase_17 AC 129 ms
24,448 KB
testcase_18 AC 134 ms
24,620 KB
testcase_19 AC 260 ms
24,556 KB
testcase_20 AC 447 ms
24,636 KB
testcase_21 AC 479 ms
24,520 KB
testcase_22 AC 675 ms
25,112 KB
testcase_23 AC 694 ms
24,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
count = 0

n=int(input())
ans =[]
li=[i for i in range(1,n+1)]
for i in range(n):
    print("?",n-1)
    sys.stdout.flush()
    print(*li[:i],*li[i+1:])
    sys.stdout.flush()
    inp=int(input())
    if not inp:
        ans.append(i+1)
print("!",len(ans))
print(*ans)


0