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 22:09Joad NacerJoad NacerScore: 5,789Success
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 22:095,71934,170,91917,284,0001,016,0002,289,664
2Apr 16, 2024 22:095,73034,897,52816,300,0002,037,0002,523,136
3Apr 16, 2024 22:095,74740,494,83616,347,0002,043,0002,269,184
4Apr 16, 2024 22:095,76142,553,43516,386,0002,048,0002,265,088
5Apr 16, 2024 22:095,77145,366,73617,441,0001,025,0002,527,232
6Apr 16, 2024 22:095,78338,601,62617,476,0001,028,0002,523,136
7Apr 16, 2024 22:095,78940,976,77817,496,0001,029,0002,269,184
8Apr 16, 2024 22:095,79240,334,32817,505,0001,029,0002,527,232
9Apr 16, 2024 22:095,79744,973,50217,520,0001,030,0002,289,664
10Apr 16, 2024 22:095,947105,963,04419,031,22202,297,856
11Apr 16, 2024 22:095,99695,841,06119,187,39802,297,856
12Apr 16, 2024 22:096,04590,937,73419,343,46502,297,856