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 22, 2023 19:37Alexander FrolovAlexander FrolovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2023 19:3700000Error: Exit with code 2: panic: runtime error: index out of range [3] with length 3 goroutine 1 [running]: encoding/binary.littleEndian.Uint32(...) /tmp/go1.21.5/go/src/encoding/binary/binary.go:80 main.main() /tmp/solution1870669880/main.go:26 +0x359stderr