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 listJun 2, 2021 16:59Yuriy 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
1Jun 2, 2021 16:5900000Error: expected "977955 ", got "0 "
2Jun 2, 2021 16:595,01339,924,15314,036,0002,005,0002,265,088
3Jun 2, 2021 16:595,02734,474,18914,076,0002,010,0002,392,064
4Jun 2, 2021 16:595,04334,424,16115,128,0001,008,0002,396,160
5Jun 2, 2021 16:595,04344,642,15215,130,0001,008,0002,265,088
6Jun 2, 2021 16:595,04437,247,06615,132,0001,008,0002,400,256
7Jun 2, 2021 16:595,05044,553,75914,141,0002,020,0002,400,256
8Jun 2, 2021 16:595,06147,884,21214,170,0002,024,0002,265,088
9Jun 2, 2021 16:595,06942,192,75414,193,0002,027,0002,265,088
10Jun 2, 2021 16:595,07146,776,92215,214,0001,014,0002,387,968
11Jun 2, 2021 16:595,26072,917,20416,831,60802,273,280
12Jun 2, 2021 16:595,28591,979,13216,911,82002,285,568
13Jun 2, 2021 16:595,301122,374,79616,963,73102,281,472