From 9ecdd73958132417b65f44b2ff06bde497ce213f Mon Sep 17 00:00:00 2001 From: Akshat2806 Date: Tue, 12 Oct 2021 19:11:10 +0530 Subject: [PATCH] Codeforces 1598A --- CF_1598A.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 CF_1598A.cpp diff --git a/CF_1598A.cpp b/CF_1598A.cpp new file mode 100644 index 0000000..1e5f8a2 --- /dev/null +++ b/CF_1598A.cpp @@ -0,0 +1,40 @@ +#include +using namespace std; + +#define ll long long +#define endl "\n" + + +void solve(){ + ll n;cin>>n; + char a[2][n]; + for(int i=0;i<2;i++){ + for(int j=0;j>a[i][j]; + } + } + ll flag=0; + if(a[0][0]=='1'){ + cout<<"NO"<>t; + while(t--){ + solve(); + } + + return 0; +}