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 listDec 25, 2023 00:06Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2023 00:0600000Error: Exit with code 2: panic: runtime error: slice bounds out of range [:-260503] goroutine 1 [running]: internal/poll.(*FD).Write(0xc0000440c0, {0xc00017ff08, 0xfffffffffffc0669, 0x100000}) /tmp/go1.21.5/go/src/internal/poll/fd_unix.go:380 +0x46e ...stderr