<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://yukicoder.me/problems/no/814 前提知識 二分探索 解説 https://yukicoder.me/submissions/338394問題文にもあるように、ジジは奇数枚・他は偶数枚になっている。 使えそうな性質がこれなので、これを使って解法を考えていく。 ある数以下のカードの枚数を見ると、ジジが含まれるなら奇数枚・含まれないなら偶数枚となる。 答えansで以下の関数で二分探索する。 check(x) := x以下のカードの枚数が奇数ならtrue check関数内で普通に枚数を計算すると、10^18を超えるので、__int128を使うか、偶奇しか使わな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F04%2F13%2F170958&quot; title=&quot;ジジ抜き [yukicoder No.814] - はまやんはまやんはまやん&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>2019-04-13 17:09:58</published>
  <title>ジジ抜き [yukicoder No.814]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/04/13/170958</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
