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 20:15Hal FHal FScore: 4,941Success
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 20:154,87642,927,11414,562,0001,040,0002,289,664
2Jan 3, 2023 20:154,89236,281,65414,612,0001,043,0002,269,184
3Jan 3, 2023 20:154,89631,856,62415,667,00002,383,872
4Jan 3, 2023 20:154,90043,584,83814,635,0001,045,0002,277,376
5Jan 3, 2023 20:154,91134,845,89914,667,0001,047,0002,277,376
6Jan 3, 2023 20:154,91732,507,78313,767,0001,966,0002,273,280
7Jan 3, 2023 20:154,94142,149,06514,824,000988,0002,289,664
8Jan 3, 2023 20:154,94837,063,44214,843,000989,0002,277,376
9Jan 3, 2023 20:154,95736,498,53713,880,0001,982,0002,289,664
10Jan 3, 2023 20:155,55579,087,37017,775,96302,297,856
11Jan 3, 2023 20:155,58386,853,19917,866,23002,297,856
12Jan 3, 2023 20:155,65281,175,30118,085,71402,301,952