/****************************************************************************** * Sample solution for the Watchdog problem in NWERC'04 * Author: Andreas Björklund * Solution: Try all valid positions ******************************************************************************/ #include #define MAXN (50) int x[MAXN],y[MAXN]; int main(void) { int n,s,h,i,j,k,found; scanf("%d",&n); while (n--) { scanf("%d %d",&s,&h); for (i=0;i