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 26, 2024 00:31Franek KortaFranek KortaScore: 4,599Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2024 00:314,56836,638,54914,618,00002,531,328
2Jan 26, 2024 00:314,57332,135,02113,588,0001,045,0002,441,216
3Jan 26, 2024 00:314,57330,923,48014,633,00002,531,328
4Jan 26, 2024 00:314,57539,758,07812,548,0002,091,0002,441,216
5Jan 26, 2024 00:314,57537,146,04314,640,00002,531,328
6Jan 26, 2024 00:314,57827,117,75113,604,0001,046,0002,445,312
7Jan 26, 2024 00:314,58433,579,25811,526,0003,143,0002,445,312
8Jan 26, 2024 00:314,58935,214,10013,636,0001,048,0002,527,232
9Jan 26, 2024 00:314,58944,436,49013,637,0001,049,0002,269,184
10Jan 26, 2024 00:314,59041,121,32713,639,0001,049,0002,531,328
11Jan 26, 2024 00:314,59134,551,88014,690,00002,531,328
12Jan 26, 2024 00:314,59328,951,67613,647,0001,049,0002,269,184
13Jan 26, 2024 00:314,59928,943,99714,718,00002,531,328
14Jan 26, 2024 00:314,60031,462,16414,720,00002,449,408
15Jan 26, 2024 00:314,60135,998,40314,724,00002,269,184
16Jan 26, 2024 00:314,65032,518,29013,888,000992,0002,445,312
17Jan 26, 2024 00:314,65030,752,44514,881,00002,449,408
18Jan 26, 2024 00:314,65340,775,60613,899,000992,0002,441,216
19Jan 26, 2024 00:314,83364,768,79115,465,40002,260,992
20Jan 26, 2024 00:314,83453,863,50215,469,59002,203,648
21Jan 26, 2024 00:314,83688,492,54115,475,57102,207,744
22Jan 26, 2024 00:314,83776,073,27815,478,21202,199,552
23Jan 26, 2024 00:314,83765,855,90615,478,49302,199,552
24Jan 26, 2024 00:314,84765,709,19315,511,49602,256,896