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:54Jack FrigaardJack FrigaardScore: 5,271Success
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:545,19834,032,81315,595,0001,039,0002,523,136
2Jan 2, 2023 16:545,21350,105,89415,639,0001,042,0002,527,232
3Jan 2, 2023 16:545,21447,439,32415,642,0001,042,0002,285,568
4Jan 2, 2023 16:545,21842,942,53315,654,0001,043,0002,273,280
5Jan 2, 2023 16:545,23446,969,85015,704,0001,046,0002,285,568
6Jan 2, 2023 16:545,26144,355,31315,845,000990,0002,277,376
7Jan 2, 2023 16:545,27149,612,44514,883,0001,984,0002,285,568
8Jan 2, 2023 16:545,27633,558,60014,896,0001,986,0002,285,568
9Jan 2, 2023 16:545,27733,301,74014,901,0001,986,0002,355,200
10Jan 2, 2023 16:545,41865,307,64317,337,97202,297,856
11Jan 2, 2023 16:545,44860,171,23917,432,17902,297,856
12Jan 2, 2023 16:545,45584,558,83917,456,42902,297,856