From db28aae2f48ff70b983afc8daa482e0ca86a3bb7 Mon Sep 17 00:00:00 2001 From: Umang Devanshu <81811004+devumang096@users.noreply.github.com> Date: Wed, 19 Oct 2022 20:27:13 +0530 Subject: [PATCH 1/2] Add files via upload --- CPP/Problems/ODDSUMPAIR.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CPP/Problems/ODDSUMPAIR.cpp diff --git a/CPP/Problems/ODDSUMPAIR.cpp b/CPP/Problems/ODDSUMPAIR.cpp new file mode 100644 index 00000000..3ad04f81 --- /dev/null +++ b/CPP/Problems/ODDSUMPAIR.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() { + // your code goes here + int t; + cin>>t; + while(t--){ + int a,b,c; + cin>>a>>b>>c; + + if((a+b)%2!=0 || (a+c)%2!=0 || (b+c)%2!=0) + cout<<"YES"< Date: Wed, 19 Oct 2022 20:37:20 +0530 Subject: [PATCH 2/2] Add files via upload --- CPP/Problems/DIFFCONSEC.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CPP/Problems/DIFFCONSEC.cpp diff --git a/CPP/Problems/DIFFCONSEC.cpp b/CPP/Problems/DIFFCONSEC.cpp new file mode 100644 index 00000000..7cd0d73e --- /dev/null +++ b/CPP/Problems/DIFFCONSEC.cpp @@ -0,0 +1,26 @@ +#include +using namespace std; + +int main() { + // your code goes here + int t; + cin>>t; + while(t--){ + int str_len; + string str; + cin>>str_len>>str; + + int counter=0; + for(int i=0;i