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:39Viktor IarmolaViktor IarmolaScore: 5,584Success
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:395,47234,098,89916,481,0001,030,0002,408,448
2Dec 6, 2023 11:395,50644,002,07417,618,00002,404,352
3Dec 6, 2023 11:395,52035,046,76416,625,0001,039,0002,281,472
4Dec 6, 2023 11:395,53644,271,88317,714,00002,396,160
5Dec 6, 2023 11:395,54048,283,22716,686,0001,042,0002,281,472
6Dec 6, 2023 11:395,54539,089,18416,700,0001,043,0002,404,352
7Dec 6, 2023 11:395,58448,203,95916,878,000992,0002,412,544
8Dec 6, 2023 11:395,58433,957,52216,878,000992,0002,281,472
9Dec 6, 2023 11:395,58745,827,09616,886,000993,0002,281,472
10Dec 6, 2023 11:395,97286,347,92919,109,40502,301,952
11Dec 6, 2023 11:395,98570,674,63219,152,45402,293,760
12Dec 6, 2023 11:396,02390,252,47019,274,77902,256,896