<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>B - Mysterious Light 問題概略 制約 2≦N≦10122≦N≦1012 1≦X≦N−11≦X≦N−1 NN と XX はいずれも整数である。 解法 この問題が難しいのは、残された形が三角形、台形、平行四辺形と変化していくから。 一回の操作を平行四辺形を小さい平行四辺形に変えるものだと考えれば、ユークリッドの互除法的な操作をすることで解ける。 解法 public static void main(String[] args){ //longを忘れるなオーバーフローするぞ N = sc.nextLong(); long x = sc.nextLong(); long res =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2018%2F08%2F02%2F213605&quot; title=&quot;B - Mysterious Light　AtCoder Grand Contest 001 - バイトの競プロメモ&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/b/baitop/20180802/20180802213303.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-02 21:36:05</published>
  <title>B - Mysterious Light　AtCoder Grand Contest 001</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2018/08/02/213605</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
