<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
  </categories>
  <description>天才か… 問題 agc001.contest.atcoder.jp 解法 普通に計算しようとすると, (Ai + Aj + Bi + Bj)! / (Ai+Aj)! / (Bi+Bj)!を各 i, j について求めてその和を計算することになります。が, これだと間に合いません。そこで, 上の式をよく見ると, これは (0, 0) から (Ai+Aj, Bi+Bj) へ向かう経路の場合の数になっていることに気付きます。対称性的なものを意識すると, (-Aj, -Bj) から (Ai, Bi) に向かう場合の数にもなっています。こう考えることができると勝ちで, スタート地点を (-A1, -B1)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F07%2F17%2F120929&quot; title=&quot;AtCoder Grand Contest 001 E - BBQ Hard - mayoko’s diary&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>2016-07-17 12:09:29</published>
  <title>AtCoder Grand Contest 001 E - BBQ Hard</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/07/17/120929</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
