int main(){
	unsigned char b;
	for(LSET(b,1);LGET(b)<=GRIDW*GRIDW;LSET(b,(LGET(b)+1)))
		for(RSET(b,1);RGET(b)<=GRIDW*GRIDW;RSET(b,(RGET(b)+1)))
			if(LGET(b)%GRIDW!=RGET(b)%GRIDW)
				printf("A=%d, B=%d\n",LGET(b),RGET(b));
	return 0;

}
Пример #2
0
void fun1() {
    unsigned char b;
    for (LSET(b, 1); LGET(b) <= GRIDW * GRIDW; LSET(b, (LGET(b) + 1)))
    {
        for (RSET(b, 1); RGET(b) <= GRIDW * GRIDW; RSET(b, (RGET(b) + 1)))
        {
            if (LGET(b) % GRIDW != RGET(b) % GRIDW) {
                printf("A = %d, B = %d\n", LGET(b), RGET(b));
            }
        }
    }

}