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 29, 2023 18:43Yuriy 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 29, 2023 18:3900000Error: line 7552345: expected Fizz got
2Dec 29, 2023 18:4100000Error: line 15107973: expected 2685036052 got EOF
3Dec 29, 2023 18:434,8981,180,107,200279,201,8510267,223,040
4Dec 29, 2023 18:434,9071,157,416,508279,690,6380267,685,888
5Dec 29, 2023 18:434,9841,171,230,658284,094,8480265,850,880
6Dec 29, 2023 18:435,0401,123,802,466218,560,00068,748,000267,870,208
7Dec 29, 2023 18:435,0461,135,049,373219,805,00067,790,000267,898,880
8Dec 29, 2023 18:435,0541,143,856,647209,527,00078,572,000267,804,672
9Dec 29, 2023 18:435,0811,129,229,074223,885,00065,727,000267,948,032
10Dec 29, 2023 18:435,1011,159,834,003224,530,00066,221,000267,853,824
11Dec 29, 2023 18:435,1071,148,275,750224,641,00066,485,000266,604,544
12Dec 29, 2023 18:435,6961,172,276,782230,611,00094,065,000267,689,984
13Dec 29, 2023 18:435,8221,173,163,883224,952,000106,928,000267,739,136
14Dec 29, 2023 18:436,0961,206,016,023243,741,000103,719,000267,689,984