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

×

problem in understanding limit for value of "a" in NUKES problem?

The problem NUKES, in this problem the value of "a" can range up to 1000000000 but some programmers have used integer array to store the values of a,n and k and still got accepted. you can see it in this problem. How is this possible.

asked 16 May '16, 19:09

arpit728's gravatar image

2★arpit728
671739
accept rate: 12%


You can store up to approximately $10^9$ in integers.

link

answered 16 May '16, 19:48

debjitdj's gravatar image

4★debjitdj
46519
accept rate: 31%

@debjitdj not possible in c language, integer ranges upto 32767

(18 May '16, 16:59) arpit7282★

Nop dude. In gcc int is 4 bytes. Google it.

(18 May '16, 19:44) debjitdj4★
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,470
×1,149
×52
×28

question asked: 16 May '16, 19:09

question was seen: 734 times

last updated: 18 May '16, 19:44