29 Sat

๋‘ ์ •์ˆ˜ ์‚ฌ์ด์˜ ํ•ฉ

'''
https://programmers.co.kr/learn/courses/30/lessons/12912
๋‘ ์ •์ˆ˜ ์‚ฌ์ด์˜ ํ•ฉ
[ํ’€์ด]
'''
def solution(a, b):
    return (a+b)*(abs(a-b)+1)//2
'''
'''

Last updated

Was this helpful?