<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>CodeforcesCombined</anon>
    <anon>CodeforcesR1800</anon>
    <anon>交差数に関する問題</anon>
    <anon>最大回数・最大個数を求める</anon>
    <anon>ギャグ要素高め</anon>
    <anon>Greedy</anon>
    <anon>Greedy:交換しても悪化しない</anon>
    <anon>マルチテストケース問題</anon>
    <anon>解空間:O(N!)通りの選択肢</anon>
    <anon>グルーピングの最適化</anon>
    <anon>最大スコア</anon>
    <anon>グルーピング</anon>
    <anon>最適化問題</anon>
  </categories>
  <description>企業合コンで解いた。ギャグ系だった。 問題へのリンク 問題概要 円周上に 個の点があって、2 個ずつ 組のペアを作って線分で結ぶ。 すでに 組のペアができていて、線分が結ばれている。残りの点についてペアを作って線分を作っていったときの交差数の個数の最大値を求めよ。 制約 テストケース数 考えたこと 最初ヤバそうな問題に思えた。 線が結ばれずに残っている点について、番号が小さい方と大きい方に分けて、小さい方の 番目と大きい方の 番目を結ぶようにすればよい。 コード #include &lt;bits/stdc++.h&gt; using namespace std; void solve() { int N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2023%2F09%2F06%2F212653&quot; title=&quot;Codeforces Global Round 15 C. Maximize the Intersections (R1800) - けんちょんの競プロ精進記録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/d/drken1215/20230906/20230906212409.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-06 21:26:53</published>
  <title>Codeforces Global Round 15 C. Maximize the Intersections (R1800)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2023/09/06/212653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
