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 30, 2024 11:31BenBenScore: 5,332Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2024 11:315,27842,055,90314,903,0001,987,0002,265,088
2Jul 30, 2024 11:315,29348,103,81015,941,000996,0002,379,776
3Jul 30, 2024 11:315,30442,949,43215,975,000998,0002,265,088
4Jul 30, 2024 11:315,30833,548,19814,986,0001,998,0002,371,584
5Jul 30, 2024 11:315,30846,767,86615,987,000999,0002,379,776
6Jul 30, 2024 11:315,30948,526,20614,992,0001,998,0002,375,680
7Jul 30, 2024 11:315,33245,867,71616,058,0001,003,0002,265,088
8Jul 30, 2024 11:315,33336,606,08215,059,0002,007,0002,265,088
9Jul 30, 2024 11:315,34345,064,36516,093,0001,005,0002,367,488
10Jul 30, 2024 11:315,57469,746,88217,835,94602,285,568
11Jul 30, 2024 11:315,59370,950,53617,897,68502,400,256
12Jul 30, 2024 11:315,59567,647,90117,903,79702,281,472