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 3, 2021 16:38Yuriy LyfenkoYuriy LyfenkoScore: 5,037Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2021 16:374,996543,565,43414,987,000999,0002,281,472
2Jun 3, 2021 16:384,996539,064,92714,988,000999,0002,273,280
3Jun 3, 2021 16:385,002542,452,99614,006,0002,000,0002,404,352
4Jun 3, 2021 16:375,005539,891,49814,014,0002,002,0002,281,472
5Jun 3, 2021 16:375,007537,522,53215,021,0001,001,0002,281,472
6Jun 3, 2021 16:375,009540,892,24615,028,0001,001,0002,281,472
7Jun 3, 2021 16:375,012536,710,94715,035,0001,002,0002,273,280
8Jun 3, 2021 16:385,014543,358,23514,040,0002,005,0002,281,472
9Jun 3, 2021 16:375,019541,756,43215,058,0001,003,0002,400,256
10Jun 3, 2021 16:375,026539,105,84615,079,0001,005,0002,273,280
11Jun 3, 2021 16:385,028542,845,03515,084,0001,005,0002,273,280
12Jun 3, 2021 16:385,029539,097,77415,087,0001,005,0002,281,472
13Jun 3, 2021 16:385,037541,101,27514,103,0002,014,0002,281,472
14Jun 3, 2021 16:385,043540,588,11615,130,0001,008,0002,273,280
15Jun 3, 2021 16:385,044546,182,19114,124,0002,017,0002,281,472
16Jun 3, 2021 16:375,049539,479,22515,149,0001,009,0002,281,472
17Jun 3, 2021 16:375,050538,806,00816,160,00002,281,472
18Jun 3, 2021 16:385,054547,128,00314,153,0002,021,0002,273,280
19Jun 3, 2021 16:375,152582,810,88816,486,33402,252,800
20Jun 3, 2021 16:385,175581,394,05616,560,87702,252,800
21Jun 3, 2021 16:385,182588,188,00516,583,35402,297,856
22Jun 3, 2021 16:375,189576,332,74116,604,70702,281,472
23Jun 3, 2021 16:375,203578,539,84716,648,30602,252,800
24Jun 3, 2021 16:385,209590,531,50916,667,89602,252,800