Array CheckSum What is wrong?

Back to Problem Solutions forum

OneMoreTime     2016-11-08 23:32:46

Hello, I really do not know what is wrong with my code, so that the case you publish gives me and I see that my algorithm follows the steps of CheckSum, but it tells me that my response is not as expected. Please help

Quandray     2016-11-09 07:29:59
User avatar

Hi,

I can't see anything wrong with your code, but I use C++.

With the following input, your Java code gives the same answer (5003589) as my C++ code.

22
5 983881 595 7 2 4181248 7 31275983 63 3986114 1969694 749 27974456 327 1189 609629 16032 738506 6787703 80787 185679151 46
OneMoreTime     2016-11-09 23:10:32

Hello Quandray, thank you very much, in fact I have reviewed my code, I have done it in different ways and the answers as stated, so why tell me that my answer is wrong? What should I do?

OneMoreTime     2016-11-09 23:15:41

Thanks for your attempt to solve task #17 ‐ Array Checksum

Your answer is Wrong You may Try again if you want to.

HELP PLEASE!!!!!!!!

Quandray     2016-11-10 07:01:58
User avatar

Try again. Make a note of the input data, your answer and the expected answer. Then post all three on here.

OneMoreTime     2016-11-11 00:23:14

Thanks for your attempt to solve task #17 ‐ Array Checksum

Your answer is Correct You now are allowed to see other's solutions of this task!


I do not understand, because now if this is good, if I have not changed anything.

I would like an answer that justifies that, thank you Quandray!


Quandray     2016-11-11 11:20:54
User avatar

Sorry, but nothing has changed at CodeAbbey. Without seeing the input, your answer and the expected answer, I can't say what happened.

OneMoreTime     2016-11-12 00:20:18

Greetings, the only thing I can think of is that maybe a space has been left to paste the response and that is why I rejected it.

Please login and solve 5 problems to be able to post at forum