You are not logged in. Please login at www.codechef.com to post your questions!

×

# What is wrong in this code?

 0 Oh man, Your whole code was right. You just forgot to add '=' in the condition in "any_of" statement, as the program should give -1 even when we have a note with value $sum$ % $x$. Here is the solution. I just have added the '=' sign in it. answered 22 Dec '18, 19:25 33●5 accept rate: 0% Oh!!..thank you for the help....:) (22 Dec '18, 19:53) dilbwag13★
 toggle preview community wiki:
Preview

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×316
×181
×14
×10

question asked: 22 Dec '18, 13:18

question was seen: 82 times

last updated: 22 Dec '18, 19:53