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 10:33Ryan Chung Yi ShengRyan Chung Yi ShengScore: 5,688Success
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 10:335,65743,462,52516,090,0002,011,0002,281,472
2Mar 7, 2024 10:335,66633,704,98416,116,0002,014,0002,396,160
3Mar 7, 2024 10:335,67735,921,33016,148,0002,018,0002,281,472
4Mar 7, 2024 10:335,68040,676,50716,158,0002,019,0002,281,472
5Mar 7, 2024 10:335,68237,432,59317,173,0001,010,0002,281,472
6Mar 7, 2024 10:335,68843,636,62016,178,0002,022,0002,281,472
7Mar 7, 2024 10:335,68845,009,01816,178,0002,022,0002,281,472
8Mar 7, 2024 10:335,69138,147,92616,187,0002,023,0002,400,256
9Mar 7, 2024 10:335,70641,934,76416,231,0002,028,0002,281,472
10Mar 7, 2024 10:335,84569,015,74718,704,66602,281,472
11Mar 7, 2024 10:335,87487,645,07018,796,68702,301,952
12Mar 7, 2024 10:335,88489,872,35718,828,66302,289,664