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 12:10Viktor IarmolaViktor IarmolaScore: 5,593Success
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 12:105,54143,675,77917,732,00002,400,256
2Dec 6, 2023 12:105,57049,336,69115,843,0001,980,0002,412,544
3Dec 6, 2023 12:105,57543,808,55515,857,0001,982,0002,408,448
4Dec 6, 2023 12:105,57943,354,47017,852,00002,281,472
5Dec 6, 2023 12:105,58441,625,42116,876,000992,0002,404,352
6Dec 6, 2023 12:105,58443,510,94516,878,000992,0002,281,472
7Dec 6, 2023 12:105,59349,254,32116,903,000994,0002,281,472
8Dec 6, 2023 12:105,59744,373,08115,920,0001,990,0002,281,472
9Dec 6, 2023 12:105,60642,486,62216,943,000996,0002,400,256
10Dec 6, 2023 12:105,87487,550,27418,797,87202,297,856
11Dec 6, 2023 12:105,94689,320,22819,028,31102,293,760
12Dec 6, 2023 12:105,95593,251,59419,055,35002,301,952