結果
| 問題 |
No.282 おもりと天秤(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-14 18:29:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 425 bytes |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 60,424 KB |
| 最終ジャッジ日時 | 2024-07-16 23:57:13 |
| 合計ジャッジ時間 | 12,947 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 23 |
ソースコード
#!/usr/bin/env python3
import sys
QUERY_LIMIT = 2000
n = int(input())
a = list(range(1,n+1))
for i in range(QUERY_LIMIT):
q = []
j = i % 2
while j+1 < n:
q.append(a[j])
q.append(a[j+1])
j += 2
print('?', *q)
sys.stdout.flush()
q = input().split()
j = i % 2
while j+1 < n:
if q[j//2] == '>':
a[j], a[j+1] = a[j+1], a[j]
j += 2
print('!', *a)