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:55Jack FrigaardJack FrigaardScore: 5,002Success
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:554,96943,108,12015,902,00002,285,568
2Jan 2, 2023 16:554,97839,574,09614,869,0001,062,0002,527,232
3Jan 2, 2023 16:554,98641,811,47314,957,000997,0002,269,184
4Jan 2, 2023 16:554,99439,218,37713,983,0001,997,0002,285,568
5Jan 2, 2023 16:554,99538,513,27613,987,0001,998,0002,285,568
6Jan 2, 2023 16:555,00138,267,28814,004,0002,000,0002,383,872
7Jan 2, 2023 16:555,00242,286,68214,006,0002,000,0002,285,568
8Jan 2, 2023 16:555,00935,317,41814,025,0002,003,0002,285,568
9Jan 2, 2023 16:555,05440,313,91514,153,0002,021,0002,347,008
10Jan 2, 2023 16:555,22183,586,60016,707,90002,252,800
11Jan 2, 2023 16:555,26380,273,44216,842,03802,256,896
12Jan 2, 2023 16:555,31298,747,61216,999,84502,293,760