Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. // СЮДА ИДИ СУКА НАХУЙ ТЫ НА КОГО ВЫЕБВАТЬСЯ РЕШИЛ БЛЯДЬ МММММММММММ?
  5. int search( int last){
  6.     int  data[6][4] = { {32,41,42,43}, {25,31,32,0}, {24,33,34,0}, {13,24,25,0}, {11,21,22,23},  {1,11,12,13}  };
  7.     int teachers[3];
  8.     int tch=0;
  9.     for(int i=1;i<6;i++)
  10.     {
  11.         for(int j=1;j<4;j++){
  12.  
  13.             if(data[i][j]==last ){
  14.                 teachers[tch]=data[i][0];
  15.                 tch++;
  16.                 search(data[i][0]);
  17.             }
  18.            // else if()
  19.         }
  20.  
  21.     }
  22.    for(int teacher : teachers){cout<<teacher;}
  23. }
  24. int main() {
  25.     int in;
  26.  
  27.   cout<<"input:";
  28.   cin>>in;
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement