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 listJun 2, 2021 14:37Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2021 14:3700000Error: expected "976958 ", got "553 15227 976958 "
2Jun 2, 2021 14:305,06231,388,14114,173,0002,024,0002,396,160
3Jun 2, 2021 14:305,07030,162,89314,196,0002,028,0002,265,088
4Jun 2, 2021 14:305,07431,728,85715,224,0001,014,0002,392,064
5Jun 2, 2021 14:305,09232,437,06314,258,0002,036,0002,392,064
6Jun 2, 2021 14:305,09832,276,67714,276,0002,039,0002,265,088
7Jun 2, 2021 14:305,09937,487,07716,317,00002,396,160
8Jun 2, 2021 14:305,10131,313,12415,304,0001,020,0002,510,848
9Jun 2, 2021 14:305,10334,269,78416,329,00002,265,088
10Jun 2, 2021 14:305,11237,606,97516,358,00002,265,088
11Jun 2, 2021 14:375,22342,882,51115,671,0001,044,0002,265,088
12Jun 2, 2021 14:375,26644,647,05315,859,000991,0002,277,376
13Jun 2, 2021 14:305,26794,575,92716,855,33702,281,472
14Jun 2, 2021 14:375,26845,040,42214,875,0001,983,0002,281,472
15Jun 2, 2021 14:375,27041,763,63414,881,0001,984,0002,289,664
16Jun 2, 2021 14:305,27182,097,76316,865,62002,281,472
17Jun 2, 2021 14:375,27232,627,73014,887,0001,984,0002,273,280
18Jun 2, 2021 14:375,27335,214,99314,889,0001,985,0002,273,280
19Jun 2, 2021 14:375,27350,609,10715,880,000992,0002,277,376
20Jun 2, 2021 14:305,27875,780,71816,890,50602,273,280
21Jun 2, 2021 14:375,28239,749,55214,913,0001,988,0002,367,488
22Jun 2, 2021 14:375,31039,800,88414,992,0001,999,0002,289,664
23Jun 2, 2021 14:375,36991,169,25817,182,29402,179,072
24Jun 2, 2021 14:375,40084,398,17017,279,04502,293,760
25Jun 2, 2021 14:375,41471,483,17217,324,49602,293,760