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 15:42Joad NacerJoad NacerScore: 5,342Success
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 15:425,27136,299,30315,876,000992,0002,289,664
2Apr 17, 2024 15:425,27738,321,57515,894,000993,0002,523,136
3Apr 17, 2024 15:425,28639,701,56215,921,000995,0002,269,184
4Apr 17, 2024 15:425,29137,868,00414,939,0001,991,0002,289,664
5Apr 17, 2024 15:425,31539,153,94915,008,0002,001,0002,289,664
6Apr 17, 2024 15:425,33534,403,20015,065,0002,008,0002,289,664
7Apr 17, 2024 15:425,34245,662,43715,082,0002,011,0002,289,664
8Apr 17, 2024 15:425,34238,405,86516,090,0001,005,0002,289,664
9Apr 17, 2024 15:425,35743,425,67416,133,0001,008,0002,269,184
10Apr 17, 2024 15:425,50063,027,59917,598,90602,297,856
11Apr 17, 2024 15:425,51278,295,67517,639,84502,297,856
12Apr 17, 2024 15:425,54271,784,77817,735,92702,301,952