Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x, y = map(int, input().split(', '))
- res = x + y - 1
- temp = (2 + res - 1) * res // 2
- print(temp - (y - 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement