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 listJul 13, 2021 19:39Yuriy LyfenkoYuriy LyfenkoScore: 5,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 19:395,647294,889,26815,059,0003,011,0002,334,720
2Jul 13, 2021 19:395,652292,154,23216,076,0002,009,0002,334,720
3Jul 13, 2021 19:395,658295,121,50115,088,0003,017,0002,334,720
4Jul 13, 2021 19:395,665295,413,18916,114,0002,014,0002,531,328
5Jul 13, 2021 19:395,670289,198,61915,120,0003,024,0002,531,328
6Jul 13, 2021 19:395,675292,567,28915,134,0003,026,0002,334,720
7Jul 13, 2021 19:395,676289,950,83916,146,0002,018,0002,342,912
8Jul 13, 2021 19:395,681296,060,06215,149,0003,029,0002,527,232
9Jul 13, 2021 19:395,683293,078,24516,166,0002,020,0002,334,720
10Jul 13, 2021 19:395,783325,516,00018,505,50402,224,128
11Jul 13, 2021 19:395,797321,567,23118,549,75802,228,224
12Jul 13, 2021 19:395,841338,328,55318,690,22102,232,320