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 16, 2021 23:05Yuriy 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 16, 2021 23:0500000Wrong answer: expected: 979901 got: 979900
2May 16, 2021 23:0600000Wrong answer: expected: 980277 got: 980275
3May 16, 2021 23:0600000Wrong answer: expected: 980391 got: 980389
4May 16, 2021 23:0700000Wrong answer: expected: 980221 got: 980220
5May 16, 2021 23:055,6553,007,613,25315,081,0003,016,0002,523,136
6May 16, 2021 23:055,673822,986,24817,144,0001,008,0002,260,992
7May 16, 2021 23:055,6841,119,090,38617,178,0001,010,0002,523,136
8May 16, 2021 23:055,6854,673,566,60117,183,0001,010,0002,527,232
9May 16, 2021 23:055,6861,485,393,76817,184,0001,010,0002,519,040
10May 16, 2021 23:055,690918,385,32516,291,0001,916,0002,265,088
11May 16, 2021 23:055,7024,256,510,99716,325,0001,920,0002,519,040
12May 16, 2021 23:055,713286,601,42715,234,0003,046,0002,523,136
13May 16, 2021 23:055,7162,653,358,63716,365,0001,925,0002,523,136
14May 16, 2021 23:056,0622,307,881,92119,396,87402,277,376
15May 16, 2021 23:056,0644,069,687,54819,404,58002,285,568
16May 16, 2021 23:056,0983,719,231,27619,512,57102,285,568