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 02:56Joad NacerJoad NacerScore: 5,488Success
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 02:565,45941,117,94317,470,00002,289,664
2Apr 17, 2024 02:565,46540,625,75616,459,0001,028,0002,392,064
3Apr 17, 2024 02:565,46834,308,16716,468,0001,029,0002,277,376
4Apr 17, 2024 02:565,47139,879,38717,507,00002,289,664
5Apr 17, 2024 02:565,47339,822,54017,513,00002,289,664
6Apr 17, 2024 02:565,48633,375,11417,556,00002,265,088
7Apr 17, 2024 02:565,48844,362,62917,562,00002,523,136
8Apr 17, 2024 02:565,50245,215,86216,571,0001,035,0002,289,664
9Apr 17, 2024 02:565,50839,171,91317,624,00002,289,664
10Apr 17, 2024 02:565,68890,292,70018,200,03602,301,952
11Apr 17, 2024 02:565,74293,706,12418,375,88802,301,952
12Apr 17, 2024 02:565,74667,625,50718,388,42402,301,952