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 2, 2023 19:40Alexander KimAlexander KimScore: 5,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 19:405,63443,063,37916,026,0002,003,0002,535,424
2Jan 2, 2023 19:405,63739,395,81517,037,0001,002,0002,342,912
3Jan 2, 2023 19:405,64138,389,35516,045,0002,005,0002,433,024
4Jan 2, 2023 19:405,64243,342,12416,048,0002,006,0002,334,720
5Jan 2, 2023 19:405,64332,500,48816,051,0002,006,0002,535,424
6Jan 2, 2023 19:405,64541,329,35117,061,0001,003,0002,531,328
7Jan 2, 2023 19:405,64642,570,94317,064,0001,003,0002,535,424
8Jan 2, 2023 19:405,64843,718,02516,064,0002,008,0002,387,968
9Jan 2, 2023 19:405,64948,198,40816,070,0002,008,0002,334,720
10Jan 2, 2023 19:405,65534,520,16117,091,0001,005,0002,543,616
11Jan 2, 2023 19:405,65843,553,73017,099,0001,005,0002,334,720
12Jan 2, 2023 19:405,65845,292,36017,100,0001,005,0002,334,720
13Jan 2, 2023 19:405,65945,842,29016,097,0002,012,0002,334,720
14Jan 2, 2023 19:405,66343,568,43316,108,0002,013,0002,535,424
15Jan 2, 2023 19:405,66542,191,61617,062,0001,066,0002,535,424
16Jan 2, 2023 19:405,66643,864,45217,125,0001,007,0002,535,424
17Jan 2, 2023 19:405,66846,125,98216,123,0002,015,0002,535,424
18Jan 2, 2023 19:405,67933,041,48816,153,0002,019,0002,334,720
19Jan 2, 2023 19:405,71581,527,68518,287,46702,248,704
20Jan 2, 2023 19:405,72287,567,70618,310,00502,256,896
21Jan 2, 2023 19:405,76478,748,00418,443,23602,256,896
22Jan 2, 2023 19:405,80877,881,89818,586,70402,244,608
23Jan 2, 2023 19:405,81984,411,49218,619,48702,240,512
24Jan 2, 2023 19:405,84284,215,81218,694,60502,228,224