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 11, 2021 18:46Yuriy LyfenkoYuriy LyfenkoScore: 5,766Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2021 18:465,71047,522,90815,228,0003,045,0002,519,040
2May 11, 2021 18:535,72443,097,00816,283,0002,035,0002,392,064
3May 11, 2021 18:465,72545,159,33417,303,0001,017,0002,383,872
4May 11, 2021 18:535,73346,862,04417,327,0001,019,0002,392,064
5May 11, 2021 18:535,73840,450,26616,323,0002,040,0002,519,040
6May 11, 2021 18:535,73945,050,42017,344,0001,020,0002,383,872
7May 11, 2021 18:465,74448,226,60517,359,0001,021,0002,387,968
8May 11, 2021 18:535,74538,468,18318,383,00002,392,064
9May 11, 2021 18:465,74934,949,75718,397,00002,519,040
10May 11, 2021 18:535,74940,723,87716,354,0002,044,0002,392,064
11May 11, 2021 18:465,75040,062,35218,401,00002,383,872
12May 11, 2021 18:465,75140,282,99217,380,0001,022,0002,519,040
13May 11, 2021 18:465,76640,905,99515,377,0003,075,0002,396,160
14May 11, 2021 18:535,76942,290,13717,436,0001,025,0002,519,040
15May 11, 2021 18:535,77039,336,38916,412,0002,051,0002,519,040
16May 11, 2021 18:465,77342,729,53317,449,0001,026,0002,387,968
17May 11, 2021 18:535,77748,717,22118,486,00002,396,160
18May 11, 2021 18:465,78443,892,52817,480,0001,028,0002,519,040
19May 11, 2021 18:465,99092,056,44419,167,11002,281,472
20May 11, 2021 18:536,02566,518,97219,279,61702,277,376
21May 11, 2021 18:466,02683,011,16019,284,67802,285,568
22May 11, 2021 18:536,03683,806,83519,314,94802,277,376
23May 11, 2021 18:536,03682,470,39019,314,88302,281,472
24May 11, 2021 18:466,05475,038,54519,373,54102,269,184