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 listJul 6, 2021 00:14Yuriy LyfenkoYuriy LyfenkoScore: 5,089Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2021 00:145,04541,232,58415,135,0001,009,0002,265,088
2Jul 6, 2021 00:145,05642,135,34515,169,0001,011,0002,265,088
3Jul 6, 2021 00:145,05736,140,84414,160,0002,022,0002,265,088
4Jul 6, 2021 00:145,06042,578,02614,169,0002,024,0002,502,656
5Jul 6, 2021 00:145,06334,478,71115,190,0001,012,0002,506,752
6Jul 6, 2021 00:145,08143,782,28314,227,0002,032,0002,387,968
7Jul 6, 2021 00:145,08933,650,02814,250,0002,035,0002,392,064
8Jul 6, 2021 00:145,09331,451,54915,281,0001,018,0002,269,184
9Jul 6, 2021 00:145,10444,982,01315,312,0001,020,0002,392,064
10Jul 6, 2021 00:145,22958,991,11116,732,32502,281,472
11Jul 6, 2021 00:145,23560,446,06116,751,60402,281,472
12Jul 6, 2021 00:145,28092,728,55816,895,66902,273,280