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 17, 2021 23:35Yuriy LyfenkoYuriy LyfenkoScore: 5,360Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 23:345,3201,448,874,45916,022,0001,001,0002,523,136
2May 17, 2021 23:355,3282,682,603,21017,049,00002,260,992
3May 17, 2021 23:355,3362,666,690,10216,072,0001,004,0002,523,136
4May 17, 2021 23:345,343484,349,41317,097,00002,265,088
5May 17, 2021 23:355,3462,553,475,27516,100,0001,006,0002,527,232
6May 17, 2021 23:345,3471,357,799,72816,104,0001,006,0002,519,040
7May 17, 2021 23:355,3501,078,843,40116,114,0001,007,0002,260,992
8May 17, 2021 23:345,3531,014,387,59516,124,0001,007,0002,519,040
9May 17, 2021 23:345,3552,531,052,41615,121,0002,016,0002,523,136
10May 17, 2021 23:355,35752,098,91516,133,0001,008,0002,265,088
11May 17, 2021 23:355,3581,911,657,27516,136,0001,008,0002,523,136
12May 17, 2021 23:345,3601,069,640,16015,135,0002,018,0002,400,256
13May 17, 2021 23:345,3601,167,318,85017,153,00002,523,136
14May 17, 2021 23:345,3711,387,154,96416,177,0001,011,0002,523,136
15May 17, 2021 23:355,3712,148,973,76316,234,000954,0002,265,088
16May 17, 2021 23:345,378400,513,01813,387,0003,824,0002,265,088
17May 17, 2021 23:355,378367,038,80816,253,000956,0002,519,040
18May 17, 2021 23:355,3891,708,868,45115,217,0002,028,0002,523,136
19May 17, 2021 23:345,560846,356,95617,792,46802,273,280
20May 17, 2021 23:355,5602,329,515,33717,792,12902,281,472
21May 17, 2021 23:355,5761,570,541,18717,843,04102,285,568
22May 17, 2021 23:355,577358,317,50917,846,14602,281,472
23May 17, 2021 23:345,5793,035,605,10617,851,56102,277,376
24May 17, 2021 23:345,5791,534,141,72417,854,30302,281,472