Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // СЮДА ИДИ СУКА НАХУЙ ТЫ НА КОГО ВЫЕБВАТЬСЯ РЕШИЛ БЛЯДЬ МММММММММММ?
- int search( int last){
- 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} };
- int teachers[3];
- int tch=0;
- for(int i=1;i<6;i++)
- {
- for(int j=1;j<4;j++){
- if(data[i][j]==last ){
- teachers[tch]=data[i][0];
- tch++;
- search(data[i][0]);
- }
- // else if()
- }
- }
- for(int teacher : teachers){cout<<teacher;}
- }
- int main() {
- int in;
- cout<<"input:";
- cin>>in;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement