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 listMay 17, 2021 11:30Sergey StreminSergey StreminScore: 5,780Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 11:305,74944,071,07818,396,00002,379,776
2May 17, 2021 11:305,76140,554,46418,434,00002,281,472
3May 17, 2021 11:305,76742,879,82516,404,0002,050,0002,281,472
4May 17, 2021 11:305,76741,886,46817,430,0001,025,0002,375,680
5May 17, 2021 11:305,77039,340,12417,438,0001,025,0002,277,376
6May 17, 2021 11:305,77637,838,75617,456,0001,026,0002,371,584
7May 17, 2021 11:305,78046,572,27217,468,0001,027,0002,277,376
8May 17, 2021 11:305,79742,077,83517,519,0001,030,0002,375,680
9May 17, 2021 11:305,80047,016,63115,466,0003,093,0002,367,488
10May 17, 2021 11:306,03758,368,99519,317,78402,248,704
11May 17, 2021 11:306,05591,732,85519,376,79002,240,512
12May 17, 2021 11:306,07072,408,49019,425,02002,240,512