結果
問題 | No.934 Explosive energy drink |
ユーザー | kamome |
提出日時 | 2020-05-20 21:43:36 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 296 ms / 2,000 ms |
コード長 | 514 bytes |
コンパイル時間 | 216 ms |
コンパイル使用メモリ | 10,844 KB |
実行使用メモリ | 24,324 KB |
平均クエリ数 | 711.58 |
最終ジャッジ日時 | 2023-09-24 03:35:02 |
合計ジャッジ時間 | 4,971 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
23,400 KB |
testcase_01 | AC | 296 ms
23,956 KB |
testcase_02 | AC | 40 ms
23,752 KB |
testcase_03 | AC | 163 ms
23,568 KB |
testcase_04 | AC | 295 ms
24,224 KB |
testcase_05 | AC | 40 ms
23,844 KB |
testcase_06 | AC | 39 ms
23,412 KB |
testcase_07 | AC | 40 ms
23,880 KB |
testcase_08 | AC | 38 ms
23,820 KB |
testcase_09 | AC | 39 ms
23,488 KB |
testcase_10 | AC | 40 ms
23,652 KB |
testcase_11 | AC | 41 ms
23,424 KB |
testcase_12 | AC | 44 ms
23,576 KB |
testcase_13 | AC | 47 ms
24,324 KB |
testcase_14 | AC | 47 ms
23,572 KB |
testcase_15 | AC | 115 ms
23,836 KB |
testcase_16 | AC | 61 ms
24,048 KB |
testcase_17 | AC | 78 ms
23,628 KB |
testcase_18 | AC | 79 ms
24,012 KB |
testcase_19 | AC | 131 ms
23,988 KB |
testcase_20 | AC | 198 ms
24,024 KB |
testcase_21 | AC | 212 ms
24,264 KB |
testcase_22 | AC | 289 ms
24,112 KB |
testcase_23 | AC | 294 ms
23,760 KB |
ソースコード
N=int(input()) L=[ str(x) for x in range(1,N+1)] expl=[] print("? "+str(N),flush=True) print(" ".join(L),flush=True) ans=True if input()=="1" else False if ans!=True: print("! 0",flush=True) print("",flush=True) exit() for i in range(N): print("? "+str(N-1),flush=True) print(" ".join(L[0:i]+L[i+1:]),flush=True) ans_str=input() ans=True if ans_str=="1" else False if ans!=True: expl.append(str(i+1)) print("! "+str(len(expl)),flush=True) print(" ".join(expl),flush=True)