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 listJul 19, 2022 18:09Franek KortaFranek KortaScore: 5,418Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2022 18:095,34435,757,38715,089,0002,011,0002,396,160
2Jul 19, 2022 18:095,35045,789,78714,100,0003,021,0002,387,968
3Jul 19, 2022 18:095,35744,360,70516,133,0001,008,0002,392,064
4Jul 19, 2022 18:095,36040,183,12115,134,0002,017,0002,519,040
5Jul 19, 2022 18:095,37740,164,16215,181,0002,024,0002,519,040
6Jul 19, 2022 18:095,39136,466,56116,238,0001,014,0002,502,656
7Jul 19, 2022 18:095,41841,872,66516,317,0001,019,0002,519,040
8Jul 19, 2022 18:095,41836,897,65115,297,0002,039,0002,519,040
9Jul 19, 2022 18:095,43140,633,42016,356,0001,022,0002,383,872
10Jul 19, 2022 18:095,60483,632,17217,933,06802,277,376
11Jul 19, 2022 18:095,62986,463,35918,012,78802,273,280
12Jul 19, 2022 18:095,65885,586,06018,106,38102,281,472