<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k_operafan</author_name>
  <author_url>https://blog.hatena.ne.jp/k_operafan/</author_url>
  <blog_title>眠いのです</blog_title>
  <blog_url>https://k-operafan.hatenadiary.org/</blog_url>
  <categories>
    <anon>PKU</anon>
  </categories>
  <description>問題概要 0 解法 nCk=n!/k!/(n-k)!なので、整数m!に含まれる素因数2の個数を求めることが出来れば簡単に判定出来る。 これは、mをどんどん2で割っていくことで求めることが出来る。 実装(C) #include &lt;stdio.h&gt; int calc_2(int a){ int res=0; a&gt;&gt;=1; while(a&gt;0){ res+=a; a&gt;&gt;=1; } return res; } int n,k; int main(){ while(~scanf(&quot;%d%d&quot;,&amp;n,&amp;k)){ if(calc_2(n)-calc_2(k)-calc_2(n-k)&gt;0){ puts(&quot;0&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-operafan.hatenadiary.org%2Fentry%2F20120505%2F1336207463&quot; title=&quot;PKU 3219-Binomial Coefficients - 眠いのです&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>2012-05-05 17:44:23</published>
  <title>PKU 3219-Binomial Coefficients</title>
  <type>rich</type>
  <url>https://k-operafan.hatenadiary.org/entry/20120505/1336207463</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
