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 13, 2024 15:45Brian WardBrian WardScore: 5,747Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2024 15:455,69540,831,05517,211,0001,012,0002,289,664
2Apr 13, 2024 15:455,70537,624,09716,227,0002,028,0002,351,104
3Apr 13, 2024 15:455,70942,360,69016,240,0002,030,0002,351,104
4Apr 13, 2024 15:455,73132,778,55517,321,0001,018,0002,351,104
5Apr 13, 2024 15:455,73547,389,17818,352,00002,347,008
6Apr 13, 2024 15:455,73838,731,65617,340,0001,020,0002,289,664
7Apr 13, 2024 15:455,74743,189,83917,370,0001,021,0002,289,664
8Apr 13, 2024 15:455,75035,187,83618,400,00002,351,104
9Apr 13, 2024 15:455,75238,113,99417,385,0001,022,0002,347,008
10Apr 13, 2024 15:455,94690,412,97319,026,74102,236,416
11Apr 13, 2024 15:455,94785,983,11319,029,05402,228,224
12Apr 13, 2024 15:455,97767,560,83719,127,67602,224,128