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 17, 2024 18:47Joad NacerJoad NacerScore: 4,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 18:474,81834,209,73314,389,0001,027,0002,289,664
2Apr 17, 2024 18:474,82639,981,70815,444,00002,289,664
3Apr 17, 2024 18:474,83635,755,17114,443,0001,031,0002,387,968
4Apr 17, 2024 18:474,84132,758,40614,460,0001,032,0002,289,664
5Apr 17, 2024 18:474,84336,269,61714,466,0001,033,0002,277,376
6Apr 17, 2024 18:474,84833,641,72615,514,00002,289,664
7Apr 17, 2024 18:474,85032,931,93014,487,0001,034,0002,523,136
8Apr 17, 2024 18:474,86536,254,37814,530,0001,037,0002,289,664
9Apr 17, 2024 18:474,87339,176,84114,554,0001,039,0002,289,664
10Apr 17, 2024 18:475,04790,673,25316,149,62302,297,856
11Apr 17, 2024 18:475,07384,378,73816,233,51902,174,976
12Apr 17, 2024 18:475,08267,565,61816,263,44802,301,952