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 27, 2021 21:25Egor SergeevEgor SergeevScore: 5,145Success
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, 2021 21:255,08732,089,35316,277,00002,494,464
2May 27, 2021 21:255,10132,049,15416,324,00002,498,560
3May 27, 2021 21:255,10734,676,04416,343,00002,281,472
4May 27, 2021 21:255,11637,014,67216,371,00002,277,376
5May 27, 2021 21:255,13833,779,32116,442,00002,535,424
6May 27, 2021 21:255,14342,195,38816,456,00002,486,272
7May 27, 2021 21:255,14535,958,17616,465,00002,277,376
8May 27, 2021 21:255,15127,645,93716,484,00002,506,752
9May 27, 2021 21:255,15233,241,57216,486,00002,273,280
10May 27, 2021 21:255,34970,053,32317,115,89302,375,680
11May 27, 2021 21:255,36248,267,38817,157,40302,240,512
12May 27, 2021 21:255,42755,737,09917,365,12302,232,320