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 2, 2023 16:49Jack FrigaardJack FrigaardScore: 4,845Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:494,81932,446,06013,365,0002,056,0002,285,568
2Jan 2, 2023 16:494,81933,264,43014,394,0001,028,0002,285,568
3Jan 2, 2023 16:494,82431,036,33814,407,0001,029,0002,531,328
4Jan 2, 2023 16:494,83238,651,94114,431,0001,030,0002,285,568
5Jan 2, 2023 16:494,83438,729,45014,439,0001,031,0002,285,568
6Jan 2, 2023 16:494,84533,213,53815,503,00002,285,568
7Jan 2, 2023 16:494,84532,736,20714,472,0001,033,0002,269,184
8Jan 2, 2023 16:494,86335,698,44314,526,0001,037,0002,285,568
9Jan 2, 2023 16:494,87838,102,05514,569,0001,040,0002,285,568
10Jan 2, 2023 16:495,06585,037,92616,206,51702,297,856
11Jan 2, 2023 16:495,08894,966,60516,282,08802,297,856
12Jan 2, 2023 16:495,09664,095,78716,307,49102,297,856