python-algorithm

[백준] 2355

무적김두칠 2020. 12. 18. 14:11

1
2
3
import sys
a,b=map(int, input().split())
print(int ((a+b)*(abs(a-b)+1)/2))
cs
반응형