diff --git a/isolate.cpp b/isolate.cpp new file mode 100644 index 0000000..fdca025 --- /dev/null +++ b/isolate.cpp @@ -0,0 +1,24 @@ +#include +using namespace std; +typedef long long int ll; +int main() +{ + ll t; + cin>>t; + while(t--){ + ll n ,m; + cin>>n>>m; + // when isolation exist then + if(n==1||m==1){ + cout<