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 14:49Jack FrigaardJack FrigaardScore: 5,902Success
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 14:495,85142,494,43517,684,0001,040,0002,285,568
2Jan 2, 2023 14:495,90048,653,77317,886,000993,0002,285,568
3Jan 2, 2023 14:495,90037,194,78217,887,000993,0002,285,568
4Jan 2, 2023 14:495,90139,172,47417,889,000993,0002,273,280
5Jan 2, 2023 14:495,90144,866,11416,897,0001,987,0002,285,568
6Jan 2, 2023 14:495,90244,710,79017,892,000994,0002,273,280
7Jan 2, 2023 14:495,90250,683,41817,892,000994,0002,523,136
8Jan 2, 2023 14:495,90644,259,02216,911,0001,989,0002,527,232
9Jan 2, 2023 14:495,91340,715,22816,930,0001,991,0002,285,568
10Jan 2, 2023 14:496,09790,172,48019,511,80502,297,856
11Jan 2, 2023 14:496,12881,409,47519,610,28402,297,856
12Jan 2, 2023 14:496,12972,790,18219,612,57602,293,760