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 3, 2024 02:32Drew 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 3, 2024 02:325,53444,386,22815,625,0002,083,0002,281,472
2Apr 3, 2024 02:335,53548,493,06316,670,0001,041,0002,281,472
3Apr 3, 2024 02:325,53744,617,07515,634,0002,084,0002,281,472
4Apr 3, 2024 02:335,56847,171,17815,837,0001,979,0002,531,328
5Apr 3, 2024 02:335,57544,564,87216,850,000991,0002,281,472
6Apr 3, 2024 02:335,57751,645,59016,855,000991,0002,281,472
7Apr 3, 2024 02:335,58148,232,33214,884,0002,976,0002,293,760
8Apr 3, 2024 02:325,58345,076,14214,887,0002,977,0002,293,760
9Apr 3, 2024 02:335,58348,809,92715,882,0001,985,0002,281,472
10Apr 3, 2024 02:325,58340,339,47514,888,0002,977,0002,281,472
11Apr 3, 2024 02:325,58450,989,77615,885,0001,985,0002,281,472
12Apr 3, 2024 02:325,58543,557,11615,887,0001,985,0002,289,664
13Apr 3, 2024 02:335,58542,533,36714,894,0002,978,0002,281,472
14Apr 3, 2024 02:335,58840,591,26616,887,000993,0002,281,472
15Apr 3, 2024 02:335,58834,831,94415,894,0001,986,0002,367,488
16Apr 3, 2024 02:325,58836,840,70514,903,0002,980,0002,281,472
17Apr 3, 2024 02:325,59343,868,60316,902,000994,0002,281,472
18Apr 3, 2024 02:325,60347,195,27314,940,0002,988,0002,281,472
19Apr 3, 2024 02:325,80878,381,11918,584,37902,174,976
20Apr 3, 2024 02:335,80986,299,52418,589,21402,183,168
21Apr 3, 2024 02:335,81379,898,82818,601,08702,179,072
22Apr 3, 2024 02:325,820101,907,86718,623,75302,301,952
23Apr 3, 2024 02:325,85081,710,85418,719,00002,306,048
24Apr 3, 2024 02:335,85296,570,19218,726,08702,174,976