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 listApr 17, 2024 00:26Joad NacerJoad NacerScore: 5,476Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 00:265,43844,468,63716,377,0001,023,0002,273,280
2Apr 17, 2024 00:295,43936,429,47716,383,0001,023,0002,273,280
3Apr 17, 2024 00:295,44237,164,99217,414,00002,289,664
4Apr 17, 2024 00:265,44734,722,41217,431,00002,289,664
5Apr 17, 2024 00:265,44744,709,58516,404,0001,025,0002,281,472
6Apr 17, 2024 00:295,45141,077,81016,416,0001,026,0002,289,664
7Apr 17, 2024 00:265,45540,635,54916,430,0001,026,0002,281,472
8Apr 17, 2024 00:295,45742,338,47116,434,0001,027,0002,289,664
9Apr 17, 2024 00:295,45938,804,33116,442,0001,027,0002,289,664
10Apr 17, 2024 00:265,46442,881,09417,485,00002,289,664
11Apr 17, 2024 00:295,47435,200,98917,516,00002,289,664
12Apr 17, 2024 00:295,47442,551,58816,486,0001,030,0002,289,664
13Apr 17, 2024 00:265,47640,005,64716,493,0001,030,0002,289,664
14Apr 17, 2024 00:295,48840,039,21517,560,00002,375,680
15Apr 17, 2024 00:265,49744,147,32616,557,0001,034,0002,347,008
16Apr 17, 2024 00:295,51337,862,35116,606,0001,037,0002,289,664
17Apr 17, 2024 00:265,51434,897,47217,646,00002,289,664
18Apr 17, 2024 00:265,53049,830,57217,695,00002,289,664
19Apr 17, 2024 00:295,68954,287,92918,206,26402,301,952
20Apr 17, 2024 00:295,69477,148,03918,220,92602,301,952
21Apr 17, 2024 00:265,70078,188,61918,238,77402,306,048
22Apr 17, 2024 00:295,70491,402,92218,253,67802,297,856
23Apr 17, 2024 00:265,70492,700,24218,251,71702,297,856
24Apr 17, 2024 00:265,72681,581,45418,321,96602,179,072