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 12, 2021 21:04Yuriy LyfenkoYuriy LyfenkoScore: 5,473Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2021 21:045,42746,432,57316,346,0001,021,0002,387,968
2May 12, 2021 21:045,43537,062,14514,323,0003,069,0002,523,136
3May 12, 2021 21:045,43639,134,95315,350,0002,046,0002,265,088
4May 12, 2021 21:045,43840,344,25416,380,0001,023,0002,396,160
5May 12, 2021 21:045,44043,140,77816,385,0001,024,0002,523,136
6May 12, 2021 21:045,44944,463,12617,436,00002,265,088
7May 12, 2021 21:045,45044,113,67516,415,0001,025,0002,523,136
8May 12, 2021 21:045,45049,652,21616,415,0001,025,0002,396,160
9May 12, 2021 21:045,46340,666,48217,480,00002,260,992
10May 12, 2021 21:045,46332,250,10716,452,0001,028,0002,392,064
11May 12, 2021 21:045,46837,555,42216,467,0001,029,0002,523,136
12May 12, 2021 21:045,47338,663,82316,484,0001,030,0002,392,064
13May 12, 2021 21:045,47343,182,24815,455,0002,060,0002,523,136
14May 12, 2021 21:045,47740,324,02417,526,00002,260,992
15May 12, 2021 21:045,48040,188,52316,506,0001,031,0002,510,848
16May 12, 2021 21:045,48939,481,27217,566,00002,260,992
17May 12, 2021 21:045,57635,154,46216,853,000991,0002,387,968
18May 12, 2021 21:045,58835,827,94615,896,0001,987,0002,396,160
19May 12, 2021 21:045,65192,624,70118,084,66202,269,184
20May 12, 2021 21:045,65476,427,30818,093,96602,281,472
21May 12, 2021 21:045,67285,983,72618,149,53902,269,184
22May 12, 2021 21:045,681100,125,60218,179,40602,285,568
23May 12, 2021 21:045,69389,877,88418,218,31102,277,376
24May 12, 2021 21:045,706104,195,01518,259,30802,285,568