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 listJan 29, 2025 10:55etherealetherealError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 29, 2025 10:5500000Error: Exit with code 2: fatal error: all goroutines are asleep - deadlock! goroutine 1 [semacquire]: sync.runtime_Semacquire(0xc0004a00f0?) /tmp/go1.23.5/go/src/runtime/sema.go:71 +0x25 sync.(*WaitGroup).Wait(0x4?) /tmp/go1.23.5/go/src/sync/waitgro...stderr
2Jan 29, 2025 10:5700000Error: Exit with code 2: fatal error: all goroutines are asleep - deadlock! goroutine 1 [semacquire]: sync.runtime_Semacquire(0xc0004a00f0?) /tmp/go1.23.5/go/src/runtime/sema.go:71 +0x25 sync.(*WaitGroup).Wait(0x4?) /tmp/go1.23.5/go/src/sync/waitgro...stderr