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 listApr 4, 2024 23:34Drew GarciaDrew GarciaScore: 5,585Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 23:035,53544,159,19315,628,0002,083,0002,281,472
2Apr 4, 2024 23:035,54543,341,86616,701,0001,043,0002,269,184
3Apr 4, 2024 23:035,54742,772,06716,705,0001,044,0002,281,472
4Apr 4, 2024 23:345,57345,613,29115,854,0001,981,0002,273,280
5Apr 4, 2024 23:345,57543,526,30114,867,0002,973,0002,277,376
6Apr 4, 2024 23:035,57943,743,55015,870,0001,983,0002,281,472
7Apr 4, 2024 23:345,58142,866,02015,876,0001,984,0002,281,472
8Apr 4, 2024 23:345,58150,071,74614,883,0002,976,0002,281,472
9Apr 4, 2024 23:035,58136,962,30516,867,000992,0002,281,472
10Apr 4, 2024 23:345,58342,675,14616,872,000992,0002,277,376
11Apr 4, 2024 23:035,58352,001,30915,881,0001,985,0002,281,472
12Apr 4, 2024 23:035,58437,412,25113,898,0003,970,0002,531,328
13Apr 4, 2024 23:345,58534,122,64416,879,000992,0002,281,472
14Apr 4, 2024 23:345,58536,586,81816,879,000992,0002,277,376
15Apr 4, 2024 23:345,58645,072,42415,888,0001,986,0002,277,376
16Apr 4, 2024 23:035,58743,972,01015,891,0001,986,0002,387,968
17Apr 4, 2024 23:345,58949,798,92117,884,00002,277,376
18Apr 4, 2024 23:035,60542,504,73315,943,0001,992,0002,269,184
19Apr 4, 2024 23:035,78491,848,85618,509,65402,220,032
20Apr 4, 2024 23:035,78480,561,19418,508,60002,306,048
21Apr 4, 2024 23:345,79292,993,75018,535,94502,301,952
22Apr 4, 2024 23:345,79357,751,67518,539,12402,183,168
23Apr 4, 2024 23:345,80681,301,03318,579,68002,174,976
24Apr 4, 2024 23:035,81185,554,65918,595,23802,301,952