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 listMay 11, 2021 20:18Yuriy LyfenkoYuriy LyfenkoScore: 5,586Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2021 20:185,52645,653,05416,643,0001,040,0002,523,136
2May 11, 2021 20:185,52643,572,70217,684,00002,392,064
3May 11, 2021 20:185,53243,262,76115,619,0002,082,0002,265,088
4May 11, 2021 20:185,53842,068,09716,680,0001,042,0002,396,160
5May 11, 2021 20:185,54147,928,10716,688,0001,043,0002,396,160
6May 11, 2021 20:185,56933,267,11215,842,0001,980,0002,392,064
7May 11, 2021 20:185,58343,843,14217,864,00002,265,088
8May 11, 2021 20:185,58450,870,87016,878,000992,0002,383,872
9May 11, 2021 20:185,58544,267,58117,871,00002,506,752
10May 11, 2021 20:185,58542,972,74716,879,000992,0002,400,256
11May 11, 2021 20:185,58637,724,10317,874,00002,392,064
12May 11, 2021 20:185,58645,911,61115,889,0001,986,0002,523,136
13May 11, 2021 20:185,58650,977,05416,883,000993,0002,260,992
14May 11, 2021 20:185,58636,240,45816,882,000993,0002,523,136
15May 11, 2021 20:185,58746,205,38615,891,0001,986,0002,396,160
16May 11, 2021 20:185,58742,133,15216,884,000993,0002,392,064
17May 11, 2021 20:185,58741,023,22014,899,0002,979,0002,510,848
18May 11, 2021 20:185,59245,888,39215,905,0001,988,0002,260,992
19May 11, 2021 20:185,70187,064,01118,244,44402,289,664
20May 11, 2021 20:185,739102,401,76418,364,30502,277,376
21May 11, 2021 20:185,74562,969,70518,383,31402,269,184
22May 11, 2021 20:185,75077,647,14018,398,93302,265,088
23May 11, 2021 20:185,76092,826,23618,433,20902,281,472
24May 11, 2021 20:185,76087,223,40618,433,02102,277,376