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 21, 2024 16:03Franek KortaFranek KortaScore: 4,575Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2024 16:034,54332,757,42313,500,0001,038,0002,445,312
2Jan 21, 2024 16:034,54437,146,81913,503,0001,038,0002,269,184
3Jan 21, 2024 16:034,54841,431,14914,555,00002,449,408
4Jan 21, 2024 16:034,55130,595,12114,562,00002,441,216
5Jan 21, 2024 16:034,55128,832,10714,563,00002,453,504
6Jan 21, 2024 16:034,55335,782,56714,569,00002,269,184
7Jan 21, 2024 16:034,55634,055,17814,580,00002,531,328
8Jan 21, 2024 16:034,56132,846,45114,594,00002,445,312
9Jan 21, 2024 16:034,56846,439,31214,617,00002,531,328
10Jan 21, 2024 16:034,57130,379,10514,626,00002,531,328
11Jan 21, 2024 16:034,57333,500,09614,634,00002,445,312
12Jan 21, 2024 16:034,57430,046,59514,636,00002,445,312
13Jan 21, 2024 16:034,57540,074,98614,639,00002,437,120
14Jan 21, 2024 16:034,57734,567,87813,601,0001,046,0002,265,088
15Jan 21, 2024 16:034,57830,692,29914,648,00002,531,328
16Jan 21, 2024 16:034,58130,042,49814,660,00002,445,312
17Jan 21, 2024 16:034,58137,011,25614,658,00002,441,216
18Jan 21, 2024 16:034,73642,183,51214,146,0001,010,0002,445,312
19Jan 21, 2024 16:034,81481,751,93415,404,04202,207,744
20Jan 21, 2024 16:034,81779,472,83515,415,73302,203,648
21Jan 21, 2024 16:034,83563,780,65715,471,25802,191,360
22Jan 21, 2024 16:034,84276,717,61715,494,02802,203,648
23Jan 21, 2024 16:034,85298,120,05015,525,69402,207,744
24Jan 21, 2024 16:034,85281,349,10115,524,95702,195,456