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 listOct 6, 2023 06:53Pavel ZagrebinPavel ZagrebinScore: 5,317Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 06:535,27742,099,79614,901,0001,986,0002,265,088
2Oct 6, 2023 06:535,27841,667,26214,904,0001,987,0002,396,160
3Oct 6, 2023 06:535,29934,202,57114,962,0001,994,0002,265,088
4Oct 6, 2023 06:535,30549,779,23315,977,000998,0002,392,064
5Oct 6, 2023 06:535,31442,940,77115,005,0002,000,0002,383,872
6Oct 6, 2023 06:535,31442,673,14415,006,0002,000,0002,387,968
7Oct 6, 2023 06:535,31743,154,63615,012,0002,001,0002,392,064
8Oct 6, 2023 06:535,32442,428,52815,033,0002,004,0002,265,088
9Oct 6, 2023 06:535,32742,967,53316,044,0001,002,0002,265,088
10Oct 6, 2023 06:535,48597,980,69417,552,49902,273,280
11Oct 6, 2023 06:535,48780,469,47017,557,78902,289,664
12Oct 6, 2023 06:535,51491,486,23317,643,97602,289,664