You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
696 B
55 lines
696 B
///*
|
|
// * map04.cpp
|
|
// *
|
|
// * Created on: May 10, 2024
|
|
// * Author: 28032
|
|
// */
|
|
//
|
|
//#include <iostream>
|
|
//
|
|
//using namespace std;
|
|
//
|
|
//int n;
|
|
////bool* respectAn,beRespected;
|
|
//bool respectAn[100010];
|
|
//bool beRespected[100010];
|
|
//
|
|
//int main()
|
|
//{
|
|
// cin>>n;
|
|
//
|
|
// for(int i = 1;i <=n;i++)
|
|
// beRespected[i] = true;
|
|
//
|
|
// for(int i = 1;i <= n;i++)
|
|
// {
|
|
// int a,b;
|
|
// cin>>a>>b;
|
|
// if(a != -1)
|
|
// {
|
|
// beRespected[a] &= b;
|
|
// respectAn[i] = b;
|
|
// }
|
|
// }
|
|
// bool flag = false;
|
|
// for(int i = 1;i <= n;i++ )
|
|
// {
|
|
// if(beRespected[i] && respectAn[i] )
|
|
// {
|
|
// flag = true;
|
|
// cout<<i<< " ";
|
|
// }
|
|
// }
|
|
// if(!flag)
|
|
// {
|
|
// cout<<-1;
|
|
// }
|
|
//
|
|
//
|
|
// return 0;
|
|
//}
|
|
//
|
|
//
|
|
//
|
|
//
|