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

×

wrong answer bishops

http://ideone.com/fork/O3QSQE questn link-http://www.spoj.com/problems/BISHOPS/

i have tried a no of test cases i couldnt find a single one giving wrong answer. for n=1 i have handled the case. and for other values of n iam using 2*n-2

asked 20 Jul '14, 09:37

akki16's gravatar image

3★akki16
51210
accept rate: 0%

edited 20 Jul '14, 09:50


For the test case , n==5 , your code was printing 08 while the answer should be 8 . Here is your corrected code .

If you find my answer useful please upvote and accept it as right answer .

Happy Coding !!!

link

answered 20 Jul '14, 11:28

the65bit's gravatar image

4★the65bit
1.1k101328
accept rate: 13%

thanks a ton :) ac :)

(24 Jul '14, 09:53) akki163★

Welcome :)

(24 Jul '14, 11:25) the65bit4★
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:

×1,114
×1

question asked: 20 Jul '14, 09:37

question was seen: 950 times

last updated: 24 Jul '14, 11:25