結果
| 問題 |
No.2085 Directed Complete Graph
|
| ユーザー |
convexineq
|
| 提出日時 | 2024-06-03 07:41:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 288 ms / 2,000 ms |
| コード長 | 345 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 81,964 KB |
| 実行使用メモリ | 93,384 KB |
| 平均クエリ数 | 2494.06 |
| 最終ジャッジ日時 | 2024-12-23 10:33:36 |
| 合計ジャッジ時間 | 4,755 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
class Compare:
def __init__(self,v):
self.val = v
def __lt__(self, other):
return query(self.val, other.val)
def query(x,y):
print(f"? {x} {y}", flush=1)
return int(input())
n = int(input())
*a, = map(Compare,range(1,n+1)[::-1])
a.sort()
print("!",flush=1)
print(n-1,flush=1)
print(*[x.val for x in a],flush=1)
convexineq