Advertisement
Guest User

aaaaaaaa

a guest
Mar 26th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.07 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. const int N = 1e4;
  4. int campo[4*N+5][4*N+5];
  5.  
  6. /*void fieldWaste(int a, int b){
  7.     campo[a][b] = 1;
  8. }
  9. void colorfulField(int n, int m){
  10.     int aux = 2;
  11.     for(int i = 1; i <= n; i++){
  12.         for(int j = 1; i <= m; j++){
  13.             if(campo[i][j] != 1) campo[i][j] = aux;
  14.             if(campo[i-1][j-1] == 2){
  15.                 aux = 3;
  16.             }else if(campo[i-1][j-1] == 3){
  17.                 aux = 4;
  18.             }else if(campo[i-1][j-1] == 4){
  19.                 aux = 2;
  20.             }      
  21.         }  
  22.     }
  23. }
  24. void query( int i, int j){
  25.     if(campo[i][j] == 2){
  26.         cout << "Carrots";     
  27.     }else if(campo[i][j] == 3){
  28.         cout << "Kiwis";
  29.     }else if(campo[i][j] == 4){
  30.         cout << "Grapes";  
  31.     }else if (campo[i][j] == 1){
  32.         cout << "Waste";
  33.     }
  34. }*/
  35. int main(){
  36.     int n, m, k, t; cin >> n >> m >> k >> t;
  37.     for(int i = 1; i <= n; i++){
  38.         for(int j = 1; i <= m; j++){
  39.             campo[i][j] = 0;
  40.             cout << campo[i][j] << " ";
  41.             }
  42.     }
  43. /*  while(k--){
  44.         int a, b;
  45.         cin >> a >> b;
  46.         fieldWaste(a, b);  
  47.     }
  48.     colorfulField(n, m);
  49.     while(t--){
  50.         int i, j;
  51.         cin >> i >> j;
  52.         query(i, j);
  53.         cout << endl;  
  54.     }
  55. */
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement