Codeforces Round 597 (Div. 2)___F Daniel and Spring Cleaning —— 数位DP
题目链接:点我啊╭(╯^╰)╮题目大意:给出l,rl,rl,r问满足以下条件的(a,b)(a,b)(a,b)有多少对解题思路:a+b=a⨁ba+b=a\bigoplusba+b=a⨁b=>=>=>aaa&\&&b=0b=0b=0证明:a⨁ba\bigoplusba⨁b为没有进位的二进制加法,a+ba+ba+b为有进位的则若满足a+b=a⨁ba+b=a\bigoplusba+b=a⨁b,则一定满足a