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 3, 2023 22:11Jack FrigaardJack FrigaardScore: 5,989Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 22:115,85745,141,58617,700,0001,041,0002,289,664
2Jan 3, 2023 22:115,91045,440,22616,922,0001,990,0002,265,088
3Jan 3, 2023 22:115,95045,932,67917,037,0002,004,0002,289,664
4Jan 3, 2023 22:115,95444,105,91117,048,0002,005,0002,289,664
5Jan 3, 2023 22:115,98147,437,31917,125,0002,014,0002,265,088
6Jan 3, 2023 22:115,98345,843,90017,129,0002,015,0002,289,664
7Jan 3, 2023 22:115,98942,002,49318,158,0001,008,0002,371,584
8Jan 3, 2023 22:116,01446,201,90717,219,0002,025,0002,289,664
9Jan 3, 2023 22:116,04086,526,22719,328,07602,301,952
10Jan 3, 2023 22:116,09985,578,56119,515,97102,306,048
11Jan 3, 2023 22:116,10343,557,96218,503,0001,027,0002,371,584
12Jan 3, 2023 22:116,19570,670,71219,824,11902,297,856