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?
Was this helpful?