Fizz Buzz Sergey Svistunov

Perform FizzBuzz on a stream of binary integers as fast as possible.

Input: 30 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: For each number n, print one line:

  • FizzBuzz if n is divisible by both 3 and 5
  • Fizz if n is divisible by 3
  • Buzz if n is divisible by 5
  • n as a decimal string otherwise
Back to listNov 5, 2024 14:59kauruuskauruusError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2024 14:5900000Error: Exit with code 2: panic: runtime error: index out of range [3] with length 0 goroutine 1 [running]: encoding/binary.littleEndian.Uint32(...) /tmp/go1.23.2/go/src/encoding/binary/binary.go:87 main.main() /tmp/solution2090954367/main.go:22 +0x259stderr