{"published":"2012-05-05 17:44:23","image_url":null,"blog_title":"\u7720\u3044\u306e\u3067\u3059","provider_url":"https://hatena.blog","height":"190","width":"100%","blog_url":"https://k-operafan.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-operafan.hatenadiary.org%2Fentry%2F20120505%2F1336207463\" title=\"PKU 3219-Binomial Coefficients - \u7720\u3044\u306e\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/k_operafan/","author_name":"k_operafan","categories":["PKU"],"provider_name":"Hatena Blog","type":"rich","url":"https://k-operafan.hatenadiary.org/entry/20120505/1336207463","description":"\u554f\u984c\u6982\u8981 0 \u89e3\u6cd5 nCk=n!/k!/(n-k)!\u306a\u306e\u3067\u3001\u6574\u6570m!\u306b\u542b\u307e\u308c\u308b\u7d20\u56e0\u65702\u306e\u500b\u6570\u3092\u6c42\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u308c\u3070\u7c21\u5358\u306b\u5224\u5b9a\u51fa\u6765\u308b\u3002 \u3053\u308c\u306f\u3001m\u3092\u3069\u3093\u3069\u30932\u3067\u5272\u3063\u3066\u3044\u304f\u3053\u3068\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002 \u5b9f\u88c5(C) #include <stdio.h> int calc_2(int a){ int res=0; a>>=1; while(a>0){ res+=a; a>>=1; } return res; } int n,k; int main(){ while(~scanf(\"%d%d\",&n,&k)){ if(calc_2(n)-calc_2(k)-calc_2(n-k)>0){ puts(\"0\"\u2026","title":"PKU 3219-Binomial Coefficients","version":"1.0"}