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 listNov 29, 2024 16:09Joad NacerJoad NacerScore: 4,477Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2024 16:094,44338,546,66413,204,0001,015,0002,428,928
2Nov 29, 2024 16:094,45032,071,97312,206,0002,034,0002,531,328
3Nov 29, 2024 16:094,45227,720,20412,212,0002,035,0002,269,184
4Nov 29, 2024 16:094,45630,048,04313,240,0001,018,0002,424,832
5Nov 29, 2024 16:094,45731,180,99513,243,0001,018,0002,433,024
6Nov 29, 2024 16:094,45731,154,09913,244,0001,018,0002,424,832
7Nov 29, 2024 16:094,45827,884,08012,227,0002,037,0002,428,928
8Nov 29, 2024 16:094,46336,559,52013,261,0001,020,0002,269,184
9Nov 29, 2024 16:094,47332,430,50113,293,0001,022,0002,428,928
10Nov 29, 2024 16:094,47631,877,86713,300,0001,023,0002,433,024
11Nov 29, 2024 16:094,47726,841,11414,326,00002,531,328
12Nov 29, 2024 16:094,48031,610,74613,312,0001,024,0002,433,024
13Nov 29, 2024 16:094,48236,347,95213,319,0001,024,0002,433,024
14Nov 29, 2024 16:094,48332,226,83713,322,0001,024,0002,531,328
15Nov 29, 2024 16:094,48326,400,84412,296,0002,049,0002,506,752
16Nov 29, 2024 16:094,48735,130,86414,357,00002,428,928
17Nov 29, 2024 16:094,49330,782,89712,324,0002,054,0002,514,944
18Nov 29, 2024 16:094,49636,284,92312,332,0002,055,0002,531,328
19Nov 29, 2024 16:094,49934,323,89313,370,0001,028,0002,433,024
20Nov 29, 2024 16:094,50431,606,37814,414,00002,531,328
21Nov 29, 2024 16:094,51246,870,42014,438,00002,433,024