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 listJan 24, 2024 11:09AnSaAnSaScore: 5,277Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2024 11:095,23146,905,85315,693,0001,046,0002,281,472
2Jan 24, 2024 11:095,25843,025,36015,838,000989,0002,281,472
3Jan 24, 2024 11:095,26943,942,59614,878,0001,983,0002,281,472
4Jan 24, 2024 11:095,26946,118,90315,869,000991,0002,281,472
5Jan 24, 2024 11:095,27242,757,40314,887,0001,984,0002,396,160
6Jan 24, 2024 11:095,27238,592,87915,879,000992,0002,281,472
7Jan 24, 2024 11:095,27332,499,45615,882,000992,0002,400,256
8Jan 24, 2024 11:095,27344,220,66215,880,000992,0002,383,872
9Jan 24, 2024 11:095,27342,767,48415,881,000992,0002,400,256
10Jan 24, 2024 11:095,27443,604,58315,884,000992,0002,400,256
11Jan 24, 2024 11:095,27542,060,96214,894,0001,985,0002,281,472
12Jan 24, 2024 11:095,27544,660,08515,887,000992,0002,396,160
13Jan 24, 2024 11:095,27741,653,71814,900,0001,986,0002,396,160
14Jan 24, 2024 11:095,28143,416,50614,910,0001,988,0002,383,872
15Jan 24, 2024 11:095,28539,751,87014,922,0001,989,0002,281,472
16Jan 24, 2024 11:095,28533,139,42614,922,0001,989,0002,281,472
17Jan 24, 2024 11:095,28845,310,68514,930,0001,990,0002,281,472
18Jan 24, 2024 11:095,29332,340,24614,944,0001,992,0002,396,160
19Jan 24, 2024 11:095,47486,701,29017,516,55102,293,760
20Jan 24, 2024 11:095,48677,403,18617,553,86302,285,568
21Jan 24, 2024 11:095,49088,348,96117,567,50202,285,568
22Jan 24, 2024 11:095,49467,035,73617,581,15502,289,664
23Jan 24, 2024 11:095,50983,058,33217,628,52302,277,376
24Jan 24, 2024 11:095,51381,780,73017,641,42602,285,568