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

×

LUCKY2: lucky number range

how to store 10^1000 in c? not even unsigned long long can store it...plz help link text

asked 28 Jun '12, 19:22

devil_001's gravatar image

0★devil_001
1223
accept rate: 0%

edited 10 Jul '12, 11:15

admin's gravatar image

0★admin ♦♦
19.1k348495534


Sometimes you really need to work with big numbers, then you can use char[1000] or int[1000].

On the other hand if your plan is to iterate all these numbers , you have to realize, that if CPU can handle 10^9 operations in second, you will need 10^991 seconds to do that...

link

answered 29 Jun '12, 12:40

betlista's gravatar image

3★betlista ♦♦
16.9k49115225
accept rate: 11%

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:

×53
×9

question asked: 28 Jun '12, 19:22

question was seen: 1,462 times

last updated: 06 Apr '16, 12:49