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 21:10Alexander KimAlexander KimScore: 5,664Success
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 21:105,63143,758,91417,018,0001,001,0002,334,720
2Jan 2, 2023 21:105,63636,910,16816,031,0002,003,0002,334,720
3Jan 2, 2023 21:105,63945,992,55117,042,0001,002,0002,334,720
4Jan 2, 2023 21:105,64041,119,72317,046,0001,002,0002,531,328
5Jan 2, 2023 21:105,64149,399,60416,047,0002,005,0002,531,328
6Jan 2, 2023 21:105,66333,705,13516,107,0002,013,0002,531,328
7Jan 2, 2023 21:105,66444,713,81215,105,0003,021,0002,334,720
8Jan 2, 2023 21:105,67549,212,81816,142,0002,017,0002,334,720
9Jan 2, 2023 21:105,70740,949,52316,234,0002,029,0002,527,232
10Jan 2, 2023 21:105,74076,879,43218,368,33202,232,320
11Jan 2, 2023 21:105,74580,495,45718,385,48102,232,320
12Jan 2, 2023 21:105,80863,436,46818,586,91502,240,512