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

×

The Game of Chess(CDWRS05) (CodeWars 2013 - By BITS, Pilani )

The link to this question is here

The link to my solution is here

anyone help me where my logic is wrong

asked 02 Oct '13, 20:11

maheshwar44's gravatar image

3★maheshwar44
10126
accept rate: 33%


ur logic is correct but the data type u used was slightly wrong!!!

instead of long long u should have used long long unsigned as the range is upto 10^19....see this link..see the value of x that is in the output...hope this helps...:)

link

answered 02 Oct '13, 20:23

kunal361's gravatar image

4★kunal361
6.0k133272
accept rate: 21%

thank you, got it

(02 Oct '13, 20:30) maheshwar443★
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:

×77
×34
×16
×14
×8
×5

question asked: 02 Oct '13, 20:11

question was seen: 1,080 times

last updated: 02 Oct '13, 20:30