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 15, 2021 22:41Yuriy LyfenkoYuriy LyfenkoScore: 5,895Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2021 22:415,81845,202,45317,584,0001,034,0002,523,136
2May 15, 2021 22:415,82041,960,83517,589,0001,034,0002,392,064
3May 15, 2021 22:415,82047,638,31116,555,0002,069,0002,396,160
4May 15, 2021 22:415,82141,805,00518,627,00002,392,064
5May 15, 2021 22:415,82742,240,72517,611,0001,035,0002,392,064
6May 15, 2021 22:415,84149,641,57918,690,00002,523,136
7May 15, 2021 22:415,84649,596,15716,629,0002,078,0002,260,992
8May 15, 2021 22:415,85341,965,24018,729,00002,506,752
9May 15, 2021 22:415,85641,673,50317,698,0001,041,0002,506,752
10May 15, 2021 22:415,87051,692,52716,808,0001,977,0002,523,136
11May 15, 2021 22:415,88944,741,27717,853,000991,0002,265,088
12May 15, 2021 22:415,89244,720,65516,871,0001,984,0002,265,088
13May 15, 2021 22:415,89544,493,69116,879,0001,985,0002,392,064
14May 15, 2021 22:415,89745,935,74517,878,000993,0002,461,696
15May 15, 2021 22:415,89943,878,75317,883,000993,0002,506,752
16May 15, 2021 22:415,90136,777,14116,896,0001,987,0002,396,160
17May 15, 2021 22:415,90247,687,46717,893,000994,0002,387,968
18May 15, 2021 22:415,90644,011,00617,904,000994,0002,523,136
19May 15, 2021 22:416,04496,587,25919,339,29902,277,376
20May 15, 2021 22:416,04664,922,59919,345,73402,281,472
21May 15, 2021 22:416,05459,058,24319,371,89902,281,472
22May 15, 2021 22:416,05775,521,43619,383,06402,281,472
23May 15, 2021 22:416,08480,723,36419,469,22802,273,280
24May 15, 2021 22:416,10490,636,33619,533,27502,285,568