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:14Franek KortaFranek KortaScore: 4,548Success
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:144,52928,074,21513,458,0001,035,0002,441,216
2Jan 21, 2024 16:144,53329,196,20514,505,00002,531,328
3Jan 21, 2024 16:144,53530,338,80614,511,00002,445,312
4Jan 21, 2024 16:144,53534,263,92814,512,00002,531,328
5Jan 21, 2024 16:144,53827,815,70413,486,0001,037,0002,527,232
6Jan 21, 2024 16:144,53926,723,31614,524,00002,531,328
7Jan 21, 2024 16:144,54233,367,25214,534,00002,531,328
8Jan 21, 2024 16:144,54334,829,29614,537,00002,437,120
9Jan 21, 2024 16:144,54432,160,29014,542,00002,269,184
10Jan 21, 2024 16:144,54528,325,00514,543,00002,437,120
11Jan 21, 2024 16:144,54735,431,46714,551,00002,531,328
12Jan 21, 2024 16:144,54734,216,56114,549,00002,449,408
13Jan 21, 2024 16:144,54835,103,29414,555,00002,269,184
14Jan 21, 2024 16:144,54936,017,85714,558,00002,445,312
15Jan 21, 2024 16:144,55031,647,52914,560,00002,269,184
16Jan 21, 2024 16:144,55634,978,59914,579,00002,445,312
17Jan 21, 2024 16:144,55629,206,80014,579,00002,269,184
18Jan 21, 2024 16:144,55838,910,79114,584,00002,437,120
19Jan 21, 2024 16:144,78455,387,12115,309,69402,199,552
20Jan 21, 2024 16:144,80655,404,74615,378,45502,203,648
21Jan 21, 2024 16:144,81089,673,66715,391,21902,199,552
22Jan 21, 2024 16:144,81270,385,07315,398,32802,203,648
23Jan 21, 2024 16:144,84388,296,57315,497,15102,211,840
24Jan 21, 2024 16:144,85685,566,50815,538,63602,195,456