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?
'''
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?