i think so it is…
https://online.codingblocks.com/player/7545/content/4700
//but my code is correct;
https://ide.codingblocks.com/s/48064
i think so it is…
https://online.codingblocks.com/player/7545/content/4700
//but my code is correct;
https://ide.codingblocks.com/s/48064
Hey Ankush, please mention the problem’s exact name here as the problem’s link you have shared is not accessible.
Hey @ankush9818744825
The sample output provided is perfect.
Please do mention name of the problem from next time like Delhi’s Odd Even
The question says that “each car will be allowed to run on Sunday if the sum of digits which are even is divisible by 4 ““or”” sum of digits which are odd in that number is divisible by 3”.
It is clearly mentioned in the question, “or”, but you have used the condition “and” in your code. So replace && with || in line 17 of your code.
delhi 's odd even in this que my code is working fine but test case are not passed
Hey Ankush, your code is not giving the correct output, check for this case
input :
1
33336
your code’s output is:
No
but the expected output is:
Yes