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

×

PCJ18A code goes wrong

Hello, My code with ID 19781133 for PCJ18A is showing wrong, can anyone please help me find out the problem?

asked 19 Aug, 12:35

shivam_sarda's gravatar image

0★shivam_sarda
11
accept rate: 0%


You are breaking out of the input loop and thus not completing the input for the current test case. This will result in the input of the current test case to be transferred to the next one, leading to a wrong answer.

link

answered 19 Aug, 13:47

prakhar17252's gravatar image

5★prakhar17252
22617
accept rate: 7%

I did not understand, as I debugged it did not break out of the input loop and it did complete the input for the ongoing case. Can you please type the correction in the same piece of code? Thanks for the help.

(24 Aug, 01:21) shivam_sarda0★
toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×20

question asked: 19 Aug, 12:35

question was seen: 36 times

last updated: 19 Aug, 13:47