結果
| 問題 | No.934 Explosive energy drink |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-18 23:55:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 494 ms / 2,000 ms |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 93,912 KB |
| 平均クエリ数 | 709.58 |
| 最終ジャッジ日時 | 2024-11-23 13:37:51 |
| 合計ジャッジ時間 | 6,762 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
n = int(input())
ans = []
for i in range(1, n + 1):
A = []
for j in range(1, n + 1):
if i != j:
A.append(j)
print("?", n - 1, flush = True)
print(*A, flush = True)
ret = int(input())
if ret == 0:
ans.append(i)
print("!", len(ans), flush = True)
print(*ans)