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:21Jack FrigaardJack FrigaardScore: 5,095Success
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:215,05044,203,88914,141,0002,020,0002,289,664
2Jan 2, 2023 22:215,05844,952,74014,163,0002,023,0002,289,664
3Jan 2, 2023 22:215,06041,970,06615,181,0001,012,0002,289,664
4Jan 2, 2023 22:215,07142,547,47214,200,0002,028,0002,289,664
5Jan 2, 2023 22:215,07738,911,31614,215,0002,030,0002,383,872
6Jan 2, 2023 22:215,09439,125,78915,283,0001,018,0002,289,664
7Jan 2, 2023 22:215,09540,252,82615,286,0001,019,0002,289,664
8Jan 2, 2023 22:215,11445,817,21914,319,0002,045,0002,523,136
9Jan 2, 2023 22:215,13946,631,85715,417,0001,027,0002,269,184
10Jan 2, 2023 22:215,28574,150,90416,913,05002,174,976
11Jan 2, 2023 22:215,29989,553,10116,955,74002,289,664
12Jan 2, 2023 22:215,32887,254,72517,050,97102,293,760