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 18:41Yuriy 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 18:4000000Error: expected "977915 ", got "977659"
2Jun 2, 2021 18:404,995541,348,10113,986,0001,998,0002,412,544
3Jun 2, 2021 18:404,997540,495,08713,991,0001,998,0002,273,280
4Jun 2, 2021 18:404,998537,442,02713,994,0001,999,0002,265,088
5Jun 2, 2021 18:405,002536,408,62914,006,0002,000,0002,281,472
6Jun 2, 2021 18:405,013541,227,62015,039,0001,002,0002,281,472
7Jun 2, 2021 18:405,014540,672,11614,040,0002,005,0002,281,472
8Jun 2, 2021 18:405,041543,204,45314,114,0002,016,0002,281,472
9Jun 2, 2021 18:405,046545,607,56615,138,0001,009,0002,273,280
10Jun 2, 2021 18:405,053539,356,06615,161,0001,010,0002,273,280
11Jun 2, 2021 18:405,154586,920,92816,491,23602,252,800
12Jun 2, 2021 18:405,185573,553,45216,592,04002,252,800
13Jun 2, 2021 18:405,186571,430,72716,596,73502,281,472
14Jun 2, 2021 18:415,258540,077,83515,835,000989,0002,392,064
15Jun 2, 2021 18:415,261539,618,51315,782,0001,052,0002,281,472
16Jun 2, 2021 18:415,264541,105,82015,855,000990,0002,273,280
17Jun 2, 2021 18:415,265539,234,44914,867,0001,982,0002,281,472
18Jun 2, 2021 18:415,273540,120,27215,883,000992,0002,273,280
19Jun 2, 2021 18:415,277539,849,02615,893,000993,0002,273,280
20Jun 2, 2021 18:415,278537,448,44015,895,000993,0002,281,472
21Jun 2, 2021 18:415,288538,620,63215,927,000995,0002,273,280
22Jun 2, 2021 18:415,289543,525,37215,930,000995,0002,281,472
23Jun 2, 2021 18:415,410583,433,99617,311,91002,281,472
24Jun 2, 2021 18:415,413577,238,60217,321,10702,293,760
25Jun 2, 2021 18:415,450584,633,11717,440,13302,285,568