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 8, 2024 21:19AndreyTSAndreyTSScore: 5,278Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2024 21:195,21844,060,79615,654,0001,043,0002,269,184
2Jun 8, 2024 21:205,23145,983,15716,740,00002,269,184
3Jun 8, 2024 21:195,23244,051,31515,695,0001,046,0002,289,664
4Jun 8, 2024 21:205,23746,329,93315,710,0001,047,0002,265,088
5Jun 8, 2024 21:195,25240,545,55115,819,000988,0002,531,328
6Jun 8, 2024 21:205,25933,685,90516,830,00002,289,664
7Jun 8, 2024 21:195,27243,314,77714,885,0001,984,0002,289,664
8Jun 8, 2024 21:205,27341,900,64616,874,00002,289,664
9Jun 8, 2024 21:205,27348,655,51015,883,000992,0002,531,328
10Jun 8, 2024 21:205,27534,350,73214,894,0001,985,0002,273,280
11Jun 8, 2024 21:195,27654,558,77814,896,0001,986,0002,269,184
12Jun 8, 2024 21:205,27743,046,70414,899,0001,986,0002,289,664
13Jun 8, 2024 21:195,27843,011,11815,896,000993,0002,379,776
14Jun 8, 2024 21:205,29438,487,18814,947,0001,993,0002,289,664
15Jun 8, 2024 21:205,30032,993,13214,964,0001,995,0002,269,184
16Jun 8, 2024 21:195,30043,719,36714,966,0001,995,0002,289,664
17Jun 8, 2024 21:195,31644,324,22515,010,0002,001,0002,289,664
18Jun 8, 2024 21:195,32545,731,25315,036,0002,004,0002,265,088
19Jun 8, 2024 21:195,46890,890,64417,497,68702,306,048
20Jun 8, 2024 21:195,47659,022,94217,521,85702,252,800
21Jun 8, 2024 21:205,50290,582,80817,606,62702,293,760
22Jun 8, 2024 21:205,51382,635,13317,640,19002,297,856
23Jun 8, 2024 21:205,51486,066,47917,643,90702,306,048
24Jun 8, 2024 21:195,53558,112,16017,711,93502,310,144