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 listJan 2, 2023 22:22Jack FrigaardJack FrigaardScore: 5,102Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 22:225,03838,440,37315,116,0001,007,0002,289,664
2Jan 2, 2023 22:225,04937,082,44714,137,0002,019,0002,265,088
3Jan 2, 2023 22:225,05135,810,68714,144,0002,020,0002,289,664
4Jan 2, 2023 22:225,05939,939,32314,165,0002,023,0002,523,136
5Jan 2, 2023 22:225,06343,938,43814,177,0002,025,0002,289,664
6Jan 2, 2023 22:225,07439,457,34014,207,0002,029,0002,371,584
7Jan 2, 2023 22:225,10240,604,74514,286,0002,040,0002,289,664
8Jan 2, 2023 22:225,11036,798,80415,330,0001,022,0002,273,280
9Jan 2, 2023 22:225,11838,365,21814,329,0002,047,0002,289,664
10Jan 2, 2023 22:225,29680,502,74416,948,32902,293,760
11Jan 2, 2023 22:225,32274,166,94717,029,71402,301,952
12Jan 2, 2023 22:225,355112,921,10717,136,88902,293,760