/* SWERC'97 - Video Surveillance */ /* 11/11/97 - Matthias Ruhl */ #include #define MAXPOINTS 100 int px[MAXPOINTS+1],py[MAXPOINTS+1],n; int solvable() { int i,j; for(i=0;i py[i+1] && py[j] < py[j+1]) return 0; } else { if(py[i] > py[j] && px[i] > px[i+1] && px[j] < px[j+1]) return 0; } } return 1; } int main() { FILE *inp; int i,caseno = 1; inp = fopen("video.in","r"); while(fscanf(inp,"%d",&n) && n != 0) { for(i=0;i