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 listSep 4, 2021 22:03Andrey TsvetkovAndrey TsvetkovScore: 5,643Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2021 22:035,59233,791,94215,906,0001,988,0002,437,120
2Sep 4, 2021 22:035,59349,620,66716,905,000994,0002,342,912
3Sep 4, 2021 22:035,59542,881,52516,910,000994,0002,535,424
4Sep 4, 2021 22:035,60247,329,35616,931,000995,0002,342,912
5Sep 4, 2021 22:035,60344,494,55115,938,0001,992,0002,342,912
6Sep 4, 2021 22:035,60748,544,58315,949,0001,993,0002,342,912
7Sep 4, 2021 22:035,62334,392,01715,993,0001,999,0002,424,832
8Sep 4, 2021 22:035,62448,226,79015,999,0001,999,0002,342,912
9Sep 4, 2021 22:035,63343,850,77216,022,0002,002,0002,342,912
10Sep 4, 2021 22:035,63436,843,54717,028,0001,001,0002,338,816
11Sep 4, 2021 22:035,63849,325,72616,039,0002,004,0002,437,120
12Sep 4, 2021 22:035,64244,777,64716,049,0002,006,0002,523,136
13Sep 4, 2021 22:035,64347,780,09417,056,0001,003,0002,342,912
14Sep 4, 2021 22:035,65348,704,05417,084,0001,004,0002,428,928
15Sep 4, 2021 22:035,65350,513,65516,081,0002,010,0002,342,912
16Sep 4, 2021 22:035,65544,161,23216,087,0002,010,0002,527,232
17Sep 4, 2021 22:035,65785,680,45518,101,12302,281,472
18Sep 4, 2021 22:035,65760,538,48018,101,74802,281,472
19Sep 4, 2021 22:035,67282,037,68418,150,28702,269,184
20Sep 4, 2021 22:035,67341,962,40316,138,0002,017,0002,437,120
21Sep 4, 2021 22:035,71674,071,25418,291,94702,273,280
22Sep 4, 2021 22:035,72088,186,81918,302,65502,269,184
23Sep 4, 2021 22:035,72436,157,29917,299,0001,017,0002,437,120
24Sep 4, 2021 22:035,73291,492,09718,343,42102,260,992