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:06Jack FrigaardJack FrigaardScore: 5,809Success
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:065,77741,218,06818,486,00002,535,424
2Jan 2, 2023 16:065,77841,330,11317,464,0001,027,0002,285,568
3Jan 2, 2023 16:065,78738,421,37218,518,00002,269,184
4Jan 2, 2023 16:065,78734,872,93517,491,0001,028,0002,285,568
5Jan 2, 2023 16:065,79441,532,50717,512,0001,030,0002,371,584
6Jan 2, 2023 16:065,79834,744,45218,554,00002,285,568
7Jan 2, 2023 16:065,80938,003,87318,588,00002,527,232
8Jan 2, 2023 16:065,81947,081,77617,588,0001,034,0002,367,488
9Jan 2, 2023 16:065,82346,091,32917,598,0001,035,0002,273,280
10Jan 2, 2023 16:066,00582,934,71119,217,25802,297,856
11Jan 2, 2023 16:066,02488,366,20819,276,79502,297,856
12Jan 2, 2023 16:066,09491,300,69419,499,70802,301,952