https://www.acmicpc.net/problem/11758
#include<stdio.h>
#include<math.h>
int main() {
int x1,y1,x2,y2,x3,y3;
scanf("%d %d %d %d %d %d",&x1,&y1,&x2,&y2,&x3,&y3);
int a=x1*y2+x2*y3+x3*y1;
int b=x2*y1+x3*y2+x1*y3;
if(a-b>0) printf("1");
else if(a-b<0) printf("-1");
else printf("0");
}