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 +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"<