Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listMay 28, 2021 05:46Yuriy 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
1May 28, 2021 05:4600000Wrong answer: expected "976751 ", got "976562 "
2May 28, 2021 05:4800000Wrong answer: expected "976745 ", got "539 556 915526 "
3May 28, 2021 06:0000000Wrong answer: expected "977430 ", got "545 556 915527 "
4May 28, 2021 05:465,02040,546,30714,056,0002,008,0002,265,088
5May 28, 2021 05:465,02847,200,74015,085,0001,005,0002,396,160
6May 28, 2021 05:465,04840,491,18014,133,0002,019,0002,510,848
7May 28, 2021 05:465,05641,439,38314,156,0002,022,0002,265,088
8May 28, 2021 05:465,05641,068,30414,158,0002,022,0002,265,088
9May 28, 2021 05:465,06145,256,99315,182,0001,012,0002,265,088
10May 28, 2021 05:465,06550,891,19614,182,0002,026,0002,265,088
11May 28, 2021 05:465,07833,514,20515,233,0001,015,0002,527,232
12May 28, 2021 05:465,08344,157,64214,231,0002,033,0002,387,968
13May 28, 2021 05:465,24255,821,75716,774,03102,285,568
14May 28, 2021 05:465,24780,340,07016,789,02902,273,280
15May 28, 2021 05:465,26372,608,65916,842,68402,277,376