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 1, 2023 21:44Jack FrigaardJack FrigaardScore: 5,594Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 21:445,52144,239,74516,628,0001,039,0002,535,424
2Jan 1, 2023 21:445,58335,442,32716,874,000992,0002,285,568
3Jan 1, 2023 21:445,58635,548,14315,888,0001,986,0002,285,568
4Jan 1, 2023 21:445,58747,710,96516,885,000993,0002,269,184
5Jan 1, 2023 21:445,58848,086,67216,887,000993,0002,375,680
6Jan 1, 2023 21:445,58949,405,50415,897,0001,987,0002,285,568
7Jan 1, 2023 21:445,59443,577,82416,907,000994,0002,285,568
8Jan 1, 2023 21:445,60337,426,80815,938,0001,992,0002,285,568
9Jan 1, 2023 21:445,63149,552,69717,018,0001,001,0002,285,568
10Jan 1, 2023 21:445,92668,429,19318,963,56002,260,992
11Jan 1, 2023 21:445,99988,199,27319,197,48102,306,048
12Jan 1, 2023 21:446,13788,543,23619,638,39802,301,952