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 listMay 27, 2024 16:40Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 16:3800000Error: line 3242572: expected Fizz got Fi68stderr
2May 27, 2024 16:4000000Error: line 29253160: expected Buzz got B17stderr
3May 27, 2024 16:409,5421,046,854,504543,904,2910267,681,792
4May 27, 2024 16:409,5671,068,514,522545,341,2250267,579,392
5May 27, 2024 16:409,7481,101,389,621555,658,1750267,665,408