<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>EmK</author_name>
  <author_url>https://blog.hatena.ne.jp/EmK/</author_url>
  <blog_title>C♯の勉強</blog_title>
  <blog_url>https://emkcsharp.hatenablog.com/</blog_url>
  <categories>
    <anon>TopCoder</anon>
    <anon>Div1</anon>
    <anon>Div1Medium</anon>
  </categories>
  <description>Practice だと return 0; するだけのプログラムでも StackOverFlow になってシステムテストで正当チェックができなかった。一番出現数が多い名前 f の出現数を x とする。x が全名前の過半数以下の場合は、ペアの最大数 floor(名前の個数 / 2) がそのまま答えになる。過半数より多い場合は、全てのペアに f が含まれることから f 以外の個数が答えになる。数式化すると min(total / 2, total - x) になるため、後は x を求める。 メモリサイズが 16MB しかないため、全数列を生成したり、Set にいれてヒストグラムを取ったりするとメモ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Femkcsharp.hatenablog.com%2Fentry%2FSRM606%2FEllysPairing&quot; title=&quot;TopCoder SRM606: EllysPairing  - C♯の勉強&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-02-01 10:56:41</published>
  <title>TopCoder SRM606: EllysPairing </title>
  <type>rich</type>
  <url>https://emkcsharp.hatenablog.com/entry/SRM606/EllysPairing</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
