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 listApr 20, 2024 15:01Joad NacerJoad NacerScore: 4,889Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 15:014,85835,476,80215,544,00002,289,664
2Apr 20, 2024 15:014,85836,856,37114,508,0001,036,0002,289,664
3Apr 20, 2024 15:014,86731,388,08814,535,0001,038,0002,527,232
4Apr 20, 2024 15:014,86832,171,49015,578,00002,523,136
5Apr 20, 2024 15:014,86943,402,32514,542,0001,038,0002,289,664
6Apr 20, 2024 15:014,87236,009,19114,550,0001,039,0002,289,664
7Apr 20, 2024 15:014,88933,496,95514,602,0001,043,0002,273,280
8Apr 20, 2024 15:014,88931,991,50914,602,0001,043,0002,289,664
9Apr 20, 2024 15:014,96644,549,54814,898,000993,0002,281,472
10Apr 20, 2024 15:015,08586,548,03616,271,79702,179,072
11Apr 20, 2024 15:015,09099,258,14616,287,80202,306,048
12Apr 20, 2024 15:015,13667,571,21216,435,97202,179,072