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 listMay 24, 2021 20:02Yuriy LyfenkoYuriy LyfenkoScore: 5,174Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2021 20:025,13238,668,23616,423,00002,375,680
2May 24, 2021 20:025,13336,913,72615,399,0001,026,0002,506,752
3May 24, 2021 20:025,14538,560,49716,465,00002,387,968
4May 24, 2021 20:025,15735,820,40815,471,0001,031,0002,523,136
5May 24, 2021 20:025,15843,159,81215,476,0001,031,0002,260,992
6May 24, 2021 20:025,16345,911,70015,488,0001,032,0002,383,872
7May 24, 2021 20:025,17432,383,65116,558,00002,383,872
8May 24, 2021 20:025,18036,296,91015,540,0001,036,0002,383,872
9May 24, 2021 20:025,18536,365,93516,591,00002,494,464
10May 24, 2021 20:025,40159,782,44917,284,25102,273,280
11May 24, 2021 20:025,42165,081,09717,347,11102,277,376
12May 24, 2021 20:025,46547,952,39517,487,25202,273,280