You are not logged in. Please login at 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

accept rate: 12%

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


answered 16 May '16, 19:48

debjitdj's gravatar image

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

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 16 May '16, 19:09

question was seen: 788 times

last updated: 18 May '16, 19:44