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 29, 2021 21:51Yuriy LyfenkoYuriy LyfenkoScore: 5,650Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2021 21:525,27743,724,32815,893,000993,0002,404,352
2May 29, 2021 21:525,28032,508,14115,902,000993,0002,265,088
3May 29, 2021 21:525,28033,363,54015,902,000993,0002,281,472
4May 29, 2021 21:525,28833,764,45315,925,000995,0002,281,472
5May 29, 2021 21:525,28944,170,61916,926,00002,277,376
6May 29, 2021 21:525,29550,657,06214,952,0001,993,0002,281,472
7May 29, 2021 21:525,30836,754,59315,985,000999,0002,408,448
8May 29, 2021 21:525,30939,338,77914,991,0001,998,0002,404,352
9May 29, 2021 21:525,32941,098,18915,048,0002,006,0002,408,448
10May 29, 2021 21:525,44888,403,79317,432,07102,297,856
11May 29, 2021 21:525,45083,084,14517,439,38302,289,664
12May 29, 2021 21:525,48681,990,78917,555,40702,285,568
13May 29, 2021 21:515,65044,113,36317,076,0001,004,0002,281,472
14May 29, 2021 21:515,65337,910,87817,084,0001,004,0002,281,472
15May 29, 2021 21:515,65442,883,29816,084,0002,010,0002,396,160
16May 29, 2021 21:515,65933,308,54916,096,0002,012,0002,281,472
17May 29, 2021 21:515,66143,114,75516,103,0002,012,0002,281,472
18May 29, 2021 21:515,66642,771,53116,117,0002,014,0002,281,472
19May 29, 2021 21:515,66642,883,42016,117,0002,014,0002,400,256
20May 29, 2021 21:515,68746,663,15417,187,0001,011,0002,281,472
21May 29, 2021 21:515,70641,608,96817,245,0001,014,0002,281,472
22May 29, 2021 21:515,81589,156,16718,606,83002,293,760
23May 29, 2021 21:515,84285,448,61918,693,93702,289,664
24May 29, 2021 21:515,85883,802,04918,744,62302,293,760