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 30, 2021 15:22Yuriy 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 30, 2021 15:2400000Error: expected "975625 ", got "542 14888 975625 "
2May 30, 2021 15:225,01745,244,71314,048,0002,006,0002,265,088
3May 30, 2021 15:415,02347,547,31814,065,0002,009,0002,400,256
4May 30, 2021 15:415,02533,480,46914,070,0002,010,0002,396,160
5May 30, 2021 15:225,02741,948,92114,076,0002,010,0002,265,088
6May 30, 2021 15:415,02842,928,06514,078,0002,011,0002,396,160
7May 30, 2021 15:415,02931,694,74515,087,0001,005,0002,392,064
8May 30, 2021 15:225,03135,694,88414,088,0002,012,0002,383,872
9May 30, 2021 15:225,03339,249,96114,094,0002,013,0002,265,088
10May 30, 2021 15:415,03742,865,98714,104,0002,014,0002,396,160
11May 30, 2021 15:415,03833,574,80215,113,0001,007,0002,265,088
12May 30, 2021 15:225,04742,143,63715,140,0001,009,0002,392,064
13May 30, 2021 15:225,05337,421,98714,150,0002,021,0002,510,848
14May 30, 2021 15:225,05536,104,48215,165,0001,011,0002,265,088
15May 30, 2021 15:415,05834,530,06915,173,0001,011,0002,265,088
16May 30, 2021 15:415,07140,894,89915,214,0001,014,0002,527,232
17May 30, 2021 15:415,07632,114,01114,213,0002,030,0002,265,088
18May 30, 2021 15:225,08535,039,10916,272,00002,265,088
19May 30, 2021 15:225,09044,506,76015,271,0001,018,0002,396,160
20May 30, 2021 15:415,21778,168,34616,693,35402,269,184
21May 30, 2021 15:415,22383,788,17316,714,60802,281,472
22May 30, 2021 15:225,22888,637,67716,730,44402,273,280
23May 30, 2021 15:225,22973,103,31716,732,77502,285,568
24May 30, 2021 15:415,25480,165,16716,812,45402,269,184
25May 30, 2021 15:225,26454,635,27516,844,95602,273,280