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 16:11Brian WardBrian WardScore: 5,707Success
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 16:115,65837,482,30516,095,0002,011,0002,289,664
2Apr 13, 2024 16:115,68841,744,28616,180,0002,022,0002,359,296
3Apr 13, 2024 16:115,69638,560,74716,201,0002,025,0002,351,104
4Apr 13, 2024 16:115,69639,928,41017,216,0001,012,0002,465,792
5Apr 13, 2024 16:115,70037,783,52116,215,0002,026,0002,355,200
6Apr 13, 2024 16:115,70441,743,99116,225,0002,028,0002,363,392
7Apr 13, 2024 16:115,70741,146,29517,247,0001,014,0002,289,664
8Apr 13, 2024 16:115,73543,702,02517,332,0001,019,0002,351,104
9Apr 13, 2024 16:115,73850,081,48317,341,0001,020,0002,289,664
10Apr 13, 2024 16:115,910105,389,37418,910,41202,228,224
11Apr 13, 2024 16:115,93092,492,55918,976,27002,228,224
12Apr 13, 2024 16:115,93585,364,75218,990,42902,228,224