I don’t understand why my code is wrong ?
How is this wrong?
@nalin1997 hey Nalin
the logic of this problem
For ex if you are given a no.:
982452
then maintain 2 variables evesum=0, oddsum = 0 ;
and they will be:
9 + 8 + 2 + 4 + 5 + 2
evesum = 8 + 2 + 4 + 2 = 16
oddsum = 9 + 5 = 14
if((evesum%4==0)||(oddsum%3==0)){
cout<<“Yes”<<endl;
}else{
cout<<“No”<<endl;
}
Oh, I guess I misinterpreted the problem.
I have fixed the problem and updated it. It turns out all test cases are correct but still it is coming out to be red in index. Can you fix it ?
@nalin1997 try to resubmit it.It will turn into green and one more thing our new platform hackerblocks is updating right now it will resolve soon.
Okay, I will wait and update you