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 listJan 2, 2023 16:29Jack FrigaardJack FrigaardScore: 5,141Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:295,04436,463,77015,133,0001,008,0002,285,568
2Jan 2, 2023 16:295,05134,329,07115,152,0001,010,0002,273,280
3Jan 2, 2023 16:295,08140,470,26414,227,0002,032,0002,269,184
4Jan 2, 2023 16:295,10734,309,14714,300,0002,042,0002,355,200
5Jan 2, 2023 16:295,11046,037,48515,331,0001,022,0002,367,488
6Jan 2, 2023 16:295,12935,256,41814,361,0002,051,0002,527,232
7Jan 2, 2023 16:295,14141,662,14415,424,0001,028,0002,285,568
8Jan 2, 2023 16:295,14334,786,69915,430,0001,028,0002,273,280
9Jan 2, 2023 16:295,14438,184,57015,433,0001,028,0002,285,568
10Jan 2, 2023 16:295,26065,490,60016,832,85002,256,896
11Jan 2, 2023 16:295,31657,741,33317,009,84102,256,896
12Jan 2, 2023 16:295,34091,675,66817,087,63902,256,896