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 listJul 21, 2023 16:30gchebanovgchebanovScore: 5,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 16:305,30738,177,13815,983,000998,0002,285,568
2Jul 21, 2023 16:305,31446,663,32615,006,0002,000,0002,404,352
3Jul 21, 2023 16:305,31542,351,17115,007,0002,000,0002,408,448
4Jul 21, 2023 16:305,32040,203,62216,022,0001,001,0002,408,448
5Jul 21, 2023 16:305,32638,709,87615,038,0002,005,0002,285,568
6Jul 21, 2023 16:305,32645,650,35915,039,0002,005,0002,285,568
7Jul 21, 2023 16:305,33939,482,20316,081,0001,005,0002,408,448
8Jul 21, 2023 16:305,35139,917,07216,117,0001,007,0002,400,256
9Jul 21, 2023 16:305,36640,742,35915,151,0002,020,0002,285,568
10Jul 21, 2023 16:305,46985,620,51917,499,30702,293,760
11Jul 21, 2023 16:305,47284,079,13317,509,59602,293,760
12Jul 21, 2023 16:305,51389,398,54917,642,52002,289,664