[백준] 4299번 : AFC 윔블던 - Python(파이썬)

강재원·2022년 9월 17일
0

[코딩테스트] Python

목록 보기
41/200



https://www.acmicpc.net/problem/4299

a,b=map(int,input().split())
if (a+b)%2==1 or a<b: print(-1)
else:
    n=(a+b)/2
    m=a-n
    print("%d %d" % (n,m))
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글