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 listMar 7, 2024 16:44Ryan Chung Yi ShengRyan Chung Yi ShengScore: 5,476Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 7, 2024 16:445,43643,984,07716,372,0001,023,0002,400,256
2Mar 7, 2024 16:445,44188,447,38417,411,64402,293,760
3Mar 7, 2024 16:445,44836,248,11817,435,00002,408,448
4Mar 7, 2024 16:445,45642,320,26716,433,0001,027,0002,281,472
5Mar 7, 2024 16:445,46947,024,05916,472,0001,029,0002,281,472
6Mar 7, 2024 16:445,47339,367,46316,484,0001,030,0002,400,256
7Mar 7, 2024 16:445,47693,822,21317,524,11602,306,048
8Mar 7, 2024 16:445,47839,968,82317,530,00002,404,352
9Mar 7, 2024 16:445,47844,129,53617,531,00002,281,472
10Mar 7, 2024 16:445,49433,087,39317,582,00002,281,472
11Mar 7, 2024 16:445,61744,865,80515,977,0001,997,0002,396,160
12Mar 7, 2024 16:445,72381,604,94218,312,49602,289,664