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 23, 2021 20:28Yuriy 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 23, 2021 20:2700000Wrong answer: expected "981547 ", got "465707 "
2May 23, 2021 20:285,27346,663,72815,880,000992,0002,265,088
3May 23, 2021 20:285,27341,829,87614,890,0001,985,0002,396,160
4May 23, 2021 20:285,27642,174,31216,883,00002,392,064
5May 23, 2021 20:285,27944,161,19915,901,000993,0002,265,088
6May 23, 2021 20:285,28336,662,53814,918,0001,989,0002,387,968
7May 23, 2021 20:285,30336,425,26115,973,000998,0002,396,160
8May 23, 2021 20:285,30634,173,64915,981,000998,0002,265,088
9May 23, 2021 20:285,31341,037,31215,000,0002,000,0002,396,160
10May 23, 2021 20:285,35846,910,01215,128,0002,017,0002,265,088
11May 23, 2021 20:285,51889,073,96817,657,77402,273,280
12May 23, 2021 20:285,52171,008,45617,668,63202,289,664
13May 23, 2021 20:285,52188,227,92817,665,92702,285,568