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

×

WA in LUNCHTIME 53 at MAXNUM3 Just give the testcase which it fails

I have tried all test cases given on codechef forum for this question still getting WA.Even i generated many test cases but it still doesn't work.The link of my code is link text and link text .Both codes are same.Please just give me the test case where my code fails.Even i came to know about string with odd number at ones place but still my code give right answer for theses cases. Thank You.

asked 29 Oct '17, 10:47

droy0528's gravatar image

4★droy0528
956
accept rate: 16%


Its failing here,
1
343545
output should be -1, your code is giving output as 43545

link

answered 29 Oct '17, 11:08

siddharthp538's gravatar image

4★siddharthp538
2555
accept rate: 11%

Thanks a lot.

(29 Oct '17, 11:22) droy05284★

Thanks it a matter of just replacing if(j==len-2)j=len-3;else j-2; by j=len-1; Thanks a lot yesterday i tried it for 2 hours but didn't get the case. Finally get AC in 0.02.

link

answered 29 Oct '17, 11:48

droy0528's gravatar image

4★droy0528
956
accept rate: 16%

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:

×21
×2

question asked: 29 Oct '17, 10:47

question was seen: 278 times

last updated: 29 Oct '17, 11:48