in reply to Puzzle: The Ham Cheese Sandwich cut.
use Math::BigInt; use Benchmark qw( cmpthese ) ; my $x = (new Math::BigInt 2)**(2**16); my $y = $x - 1; my $m = new Math::BigInt 2; my $n = $m + 1; cmpthese(-1, { large => sub{ $y < $x }, small => sub{ $m < $n } });
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Puzzle: The Ham Cheese Sandwich cut.
by Perl Mouse (Chaplain) on Nov 18, 2005 at 10:06 UTC |