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 30, 2021 16:46Yuriy 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
1May 30, 2021 16:4600000Error: expected "976957 ", got "538 15011 976957 "
2May 30, 2021 16:465,01233,607,84214,033,0002,004,0002,387,968
3May 30, 2021 16:465,02735,725,52115,082,0001,005,0002,396,160
4May 30, 2021 16:465,03033,233,60914,084,0002,012,0002,265,088
5May 30, 2021 16:465,03848,029,53914,108,0002,015,0002,265,088
6May 30, 2021 16:465,05144,233,98015,152,0001,010,0002,392,064
7May 30, 2021 16:465,05133,394,55515,154,0001,010,0002,510,848
8May 30, 2021 16:465,05338,254,55315,160,0001,010,0002,265,088
9May 30, 2021 16:465,05542,862,17515,166,0001,011,0002,265,088
10May 30, 2021 16:465,06841,030,93815,205,0001,013,0002,400,256
11May 30, 2021 16:465,22896,215,78716,728,74602,289,664
12May 30, 2021 16:465,23575,898,34216,751,76702,277,376
13May 30, 2021 16:465,25561,638,82816,815,94502,277,376