Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int z; // liczba zestawow danych
- int n, m; // wymiary planszy: n wierszy
- int k; // dopuszczalna roznica w numeracji
- int c; // kolorek czerwony
- int mouseR, mouseC; // pozycja startowa
- int cheeseR, cheeseC;
- int i, j;
- short int valueTab[22][22];
- short int colourTab[22][22];
- // wiersz kolumna, jak macierz
- int main()
- {
- for(scanf("%d", &z);z>0;z--)
- {
- scanf("%d %d", &n, &m);
- scanf("%d %d", &k, &c);
- scanf("%d %d %d %d", &mouseR, &mouseC, &cheeseR, &cheeseC);
- for(i=1;i<=n;i++)
- {
- for(j=1;j<=m;j++)
- {
- scanf("%hd", &valueTab[i][j]);
- }
- }
- for(i=1;i<=n;i++)
- {
- for(j=1;j<=m;j++)
- {
- scanf("%hd", &colourTab[i][j]);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement