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 16:33Joad NacerJoad NacerScore: 5,305Success
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 16:335,28441,592,78615,914,000994,0002,523,136
2Apr 17, 2024 16:335,28737,596,36515,862,0001,057,0002,269,184
3Apr 17, 2024 16:335,28941,825,68215,931,000995,0002,293,760
4Apr 17, 2024 16:335,29133,686,50214,940,0001,992,0002,277,376
5Apr 17, 2024 16:335,29237,986,80414,941,0001,992,0002,285,568
6Apr 17, 2024 16:335,30138,901,24615,966,000997,0002,293,760
7Apr 17, 2024 16:335,30533,231,94614,979,0001,997,0002,293,760
8Apr 17, 2024 16:335,31344,695,38715,000,0002,000,0002,273,280
9Apr 17, 2024 16:335,32236,993,61015,027,0002,003,0002,293,760
10Apr 17, 2024 16:335,53187,043,07617,698,68702,297,856
11Apr 17, 2024 16:335,53292,708,96317,701,59602,293,760
12Apr 17, 2024 16:335,55590,818,86217,775,06302,293,760