From c6b0bdc16d436c33252b82fc7199cfcbae7f4e74 Mon Sep 17 00:00:00 2001 From: Lalit singh <99964550+9389lalit@users.noreply.github.com> Date: Tue, 4 Oct 2022 22:08:48 +0530 Subject: [PATCH] Add files via upload --- isolate.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 isolate.cpp 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<