[백준] 11758번 : CCW - Python(파이썬)

강재원·2022년 10월 25일
0

[코딩테스트] Python

목록 보기
147/200



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

x1,y1=map(int,input().split())
x2,y2=map(int,input().split())
x3,y3=map(int,input().split())

a=x1*y2+x2*y3+x3*y1
b=x2*y1+x3*y2+x1*y3

if a-b>0: print("1")
elif a-b<0: print("-1")
else: print("0")
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글