Advertisement
Lesnic

Untitled

Jan 23rd, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. x, y = map(int, input().split(', '))
  2. res = x + y - 1
  3. temp = (2 + res - 1) * res // 2
  4. print(temp - (y - 1))
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement