#P9859. Competition
Competition
Competition
Problem Description
You participated in a competition and you have a number with an initial value of and a score with an initial value of . When you win the game, firstly , secondly ; when you lose the game, . Now you only know that you have won games and lost games. Please find the sum of module for all possible situations. Two situations are considered different if and only if the winning/losing sequences are different.
Input
The first line contains two integers .
Output
Output an integer represent the answer.
Sample Input
5 5
Sample Output
133035
Source
2023“钉耙编程”中国大学生算法设计超级联赛(6)