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:18Jack FrigaardJack FrigaardScore: 5,237Success
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:185,16039,983,02015,481,0001,032,0002,277,376
2Jan 2, 2023 16:185,17933,213,45115,538,0001,035,0002,527,232
3Jan 2, 2023 16:185,19043,050,85215,571,0001,038,0002,273,280
4Jan 2, 2023 16:185,19137,436,77215,573,0001,038,0002,383,872
5Jan 2, 2023 16:185,19833,467,47315,593,0001,039,0002,285,568
6Jan 2, 2023 16:185,21337,534,16915,641,0001,042,0002,527,232
7Jan 2, 2023 16:185,23749,366,43114,786,0001,971,0002,285,568
8Jan 2, 2023 16:185,27734,030,11914,901,0001,986,0002,371,584
9Jan 2, 2023 16:185,36339,863,01816,154,0001,009,0002,269,184
10Jan 2, 2023 16:185,41590,572,31417,327,66402,289,664
11Jan 2, 2023 16:185,41667,555,93817,330,90902,301,952
12Jan 2, 2023 16:185,44693,204,11917,425,74902,301,952