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 14:06Franek KortaFranek KortaScore: 4,582Success
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 14:064,56742,421,66514,615,00002,531,328
2Jan 21, 2024 14:064,56737,014,41414,613,00002,531,328
3Jan 21, 2024 14:064,57130,376,07012,539,0002,089,0002,531,328
4Jan 21, 2024 14:074,57130,449,56211,494,0003,134,0002,531,328
5Jan 21, 2024 14:074,57248,520,45914,630,00002,269,184
6Jan 21, 2024 14:074,57445,615,15514,637,00002,531,328
7Jan 21, 2024 14:074,57628,248,25814,643,00002,428,928
8Jan 21, 2024 14:064,57749,572,87714,646,00002,269,184
9Jan 21, 2024 14:074,57829,703,72714,649,00002,269,184
10Jan 21, 2024 14:064,58035,777,56110,469,0004,187,0002,269,184
11Jan 21, 2024 14:064,58145,190,50114,659,00002,269,184
12Jan 21, 2024 14:064,58138,727,10714,659,00002,449,408
13Jan 21, 2024 14:074,58227,935,58513,615,0001,047,0002,449,408
14Jan 21, 2024 14:064,58330,623,86814,664,00002,437,120
15Jan 21, 2024 14:074,58843,168,38614,681,00002,449,408
16Jan 21, 2024 14:074,58927,992,89814,684,00002,531,328
17Jan 21, 2024 14:064,59430,393,21214,700,00002,531,328
18Jan 21, 2024 14:074,65939,222,77012,921,0001,987,0002,531,328
19Jan 21, 2024 14:074,82593,737,38515,439,32102,195,456
20Jan 21, 2024 14:074,82880,219,83515,450,20502,187,264
21Jan 21, 2024 14:064,83195,112,72215,458,32602,187,264
22Jan 21, 2024 14:064,83881,236,41215,481,81702,179,072
23Jan 21, 2024 14:074,84579,780,23815,503,65202,195,456
24Jan 21, 2024 14:064,88489,733,64715,630,32902,203,648