結果
問題 | No.934 Explosive energy drink |
ユーザー | 💕💖💞 |
提出日時 | 2020-01-07 17:05:36 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 681 bytes |
コンパイル時間 | 157 ms |
コンパイル使用メモリ | 10,860 KB |
実行使用メモリ | 25,396 KB |
最終ジャッジ日時 | 2023-09-23 19:25:16 |
合計ジャッジ時間 | 6,864 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 280 ms
25,288 KB |
testcase_02 | AC | 47 ms
24,856 KB |
testcase_03 | AC | 158 ms
24,816 KB |
testcase_04 | AC | 464 ms
25,276 KB |
testcase_05 | AC | 87 ms
25,304 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 47 ms
25,152 KB |
testcase_10 | AC | 48 ms
25,132 KB |
testcase_11 | AC | 48 ms
25,284 KB |
testcase_12 | AC | 51 ms
24,792 KB |
testcase_13 | AC | 54 ms
25,396 KB |
testcase_14 | AC | 54 ms
25,116 KB |
testcase_15 | AC | 163 ms
24,748 KB |
testcase_16 | AC | 65 ms
24,764 KB |
testcase_17 | AC | 82 ms
25,372 KB |
testcase_18 | AC | 89 ms
25,224 KB |
testcase_19 | AC | 127 ms
25,260 KB |
testcase_20 | AC | 202 ms
25,296 KB |
testcase_21 | AC | 205 ms
25,392 KB |
testcase_22 | AC | 282 ms
25,212 KB |
testcase_23 | AC | 280 ms
25,304 KB |
ソースコード
import os from itertools import combinations import random import copy n = int(input()) x = list(range(1,n+1)) def check(x, ch): if ch is not None: x.remove(ch) print(f'? {len(x)}') print(' '.join(map(str, x))) try: result = input() if result == '1': return True else: return False except: return True def trier(x): for ch in [None] + copy.copy(x): '''<E3><83><81><E3><82><A7><E3><83><83><E3><82><AF>''' if check(copy.copy(x), ch): if ch is not None: x.remove(ch) return x ans = trier(x) print(f'! {len(ans)}') print(' '.join(map(str,ans)))