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 listApr 16, 2024 21:56Joad NacerJoad NacerScore: 5,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 21:565,82045,304,18317,590,0001,034,0002,269,184
2Apr 16, 2024 21:565,85143,300,87417,683,0001,040,0002,265,088
3Apr 16, 2024 21:565,85444,749,52617,694,0001,040,0002,289,664
4Apr 16, 2024 21:565,88945,059,23316,862,0001,983,0002,269,184
5Apr 16, 2024 21:565,89343,985,03016,874,0001,985,0002,289,664
6Apr 16, 2024 21:565,89452,050,33017,868,000992,0002,289,664
7Apr 16, 2024 21:565,90047,777,02118,880,00002,289,664
8Apr 16, 2024 21:565,90145,993,23416,897,0001,987,0002,289,664
9Apr 16, 2024 21:565,90241,257,05416,898,0001,988,0002,265,088
10Apr 16, 2024 21:566,04362,242,13019,336,36402,174,976
11Apr 16, 2024 21:566,058100,994,97519,386,51502,174,976
12Apr 16, 2024 21:566,09594,124,92719,504,35802,293,760