If you have a wrong answer, it's up to you to try to work out what's going
wrong, supplying your own test inputs.

WA usually means you passed the sample given in the question.  So, practise
finding the edge cases in your code.

1) Do you cope with the full range of inputs?  The sample input might use
small numbers that fit in an int where the real data set could go larger
2) Have you noticed an edge case that the sample input doesn't cover?
Devise your own test input that tests that case and see where things go.
3) Have you assumed that, for example, of two given inputs that A will
always be smaller than B?  Will your code cope if A is in fact larger?
4) Have you a solution that works for all positive numbers but does
something weird around 0 or negative numbers?

Which problem is ir precisely that you're getting WA for?

Paul Smith

[email protected]


On Mon, 31 Jan 2022 at 16:14, swetha coding <
[email protected]> wrote:

> Hi,
>
>   I have started attempting the qualification round in Code Jam 2021.I am
> getting an error message WA when i submit the solution. What are the
> possible scenarios when the judge returns WA? Is it possible to get the
> test case for which failure happened?
> -swetha
>
> --
> -- You received this message because you are subscribed to the Google
> Groups Code Jam group. To post to this group, send email to
> [email protected]. To unsubscribe from this group, send email
> to [email protected]. For more options, visit this
> group at https://groups.google.com/d/forum/google-code?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/22e78bff-4067-4a14-9950-3b8b403e44b5n%40googlegroups.com
> <https://groups.google.com/d/msgid/google-code/22e78bff-4067-4a14-9950-3b8b403e44b5n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- You received this message because you are subscribed to the Google Groups 
Code Jam group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email to 
[email protected]. For more options, visit this group at 
https://groups.google.com/d/forum/google-code?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAJej63L6xJ%3D4f4Uzo-_Eg5_m4TTiobiv5_-3anxUVj3iiDFehg%40mail.gmail.com.

Reply via email to