Re: Infinite precision floating-point
- From: "Geoffrey Summerhayes" <sRuEmMrOnVoEt@xxxxxxxxxxx>
- Date: Fri, 27 May 2005 14:00:57 -0400
"Pascal Bourguignon" <pjb@xxxxxxxxxxxxxxxxx> wrote in message
news:87wtplhh74.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> "Geoffrey Summerhayes" <sRuEmMrOnVoEt@xxxxxxxxxxx> writes:
>
>>
>> http://online-judge.uva.es/p/v2/202.html
>>
>> Unfortunately, they only allow C, C++, Java, and Pascal
>> solutions to be submitted.
>>
>> Anyone have a solution that doesn't have an O(denominator)
>> space requirement? It's a *bit* of a hitch. ;-)
>
> Where's the challenge?
>
*solution snipped*
Challenge? It was probably the "gimme" in that years ACM contest.
But try removing the line, "None of the input integers exceeds 3000."
and make it work for arbitrarily large (bignum) rationals w/o running
into time/space constraints.
--
Geoff
.
- References:
- Counting number of digits
- From: André Thieme
- Re: Counting number of digits
- From: jtdubs
- Re: Counting number of digits
- From: André Thieme
- Infinite precision floating-point (was Re: Counting number of digits)
- From: jtdubs
- Re: Infinite precision floating-point (was Re: Counting number of digits)
- From: Joel Ray Holveck
- Re: Infinite precision floating-point (was Re: Counting number of digits)
- From: jtdubs
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- From: André Thieme
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- From: André Thieme
- Re: Infinite precision floating-point
- From: josephoswaldgg@xxxxxxxxxxx
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- From: Joel Ray Holveck
- Re: Infinite precision floating-point
- From: Geoffrey Summerhayes
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Counting number of digits
- Prev by Date: Re: my first Lisp code...comments welcome
- Next by Date: Re: my first Lisp code...comments welcome
- Previous by thread: Re: Infinite precision floating-point
- Next by thread: Re: Infinite precision floating-point
- Index(es):
Relevant Pages
|