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 listDec 6, 2023 11:42Viktor IarmolaViktor IarmolaScore: 5,845Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2023 11:425,80638,323,93017,547,0001,032,0002,269,184
2Dec 6, 2023 11:425,81150,318,48118,596,00002,273,280
3Dec 6, 2023 11:425,82436,410,48417,601,0001,035,0002,277,376
4Dec 6, 2023 11:425,82844,146,79817,612,0001,036,0002,277,376
5Dec 6, 2023 11:425,83250,045,31217,625,0001,036,0002,281,472
6Dec 6, 2023 11:425,83939,993,63718,686,00002,273,280
7Dec 6, 2023 11:425,84552,445,08117,664,0001,039,0002,293,760
8Dec 6, 2023 11:425,89951,236,21817,883,000993,0002,285,568
9Dec 6, 2023 11:425,90147,962,65817,890,000993,0002,273,280
10Dec 6, 2023 11:426,01895,509,76619,257,87402,306,048
11Dec 6, 2023 11:426,02484,871,02319,277,36402,179,072
12Dec 6, 2023 11:426,063103,497,32919,402,13602,174,976