(1+x)^n
摘要:
描述
Please calculate the coefficient modulo 2 of x^i in (1+x)^n.
输入
For each case, there are two integers n, i (0<=i<=n<=2^31-1)
输出
For each case, print the coefficient modulo 2 of x^i in (1+x)^n on a single line.
样例输入
3 1
4 2
样例输出
1
0 阅读全文
posted @ 2019-08-14 22:12 随便看看—— 阅读(958) 评论(0) 推荐(0)
浙公网安备 33010602011771号