Large integer multiplication Bernard Teo

Multiply two large unsigned integers as fast as possible.

Input

Exactly 500,000 bytes on STDIN: two unsigned integers encoded back-to-back, each 250,000 bytes, in little-endian byte order.

Output

Write exactly 500,000 bytes to STDOUT containing the product in little-endian byte order.

Back to listJan 30, 2025 08:22Oleg KovalovOleg KovalovError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 08:2200000Error: Exit with code 2: panic: runtime error: slice bounds out of range [:-31249] goroutine 1 [running]: math/big.nat.make(...) /tmp/go1.23.5/go/src/math/big/nat.go:57 math/big.nat.setBytes({0x0?, 0xc000022028?, 0xc000080000?}, {0xc0000bd090?, 0x3d0...stderr