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 12, 2023 13:14Andrew MoonAndrew MoonScore: 5,445Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 12, 2023 13:145,42039,976,36216,323,0001,020,0002,519,040
2Jul 12, 2023 13:145,42440,173,99517,358,00002,519,040
3Jul 12, 2023 13:145,42837,653,30316,347,0001,021,0002,396,160
4Jul 12, 2023 13:145,43039,718,51716,353,0001,022,0002,519,040
5Jul 12, 2023 13:145,43539,624,58217,393,00002,392,064
6Jul 12, 2023 13:145,44039,243,26815,361,0002,048,0002,387,968
7Jul 12, 2023 13:145,44532,653,04316,399,0001,024,0002,519,040
8Jul 12, 2023 13:145,46537,075,09117,488,00002,387,968
9Jul 12, 2023 13:145,48143,781,57115,476,0002,063,0002,519,040
10Jul 12, 2023 13:145,67988,300,70218,173,17402,281,472
11Jul 12, 2023 13:145,70877,283,54118,265,71602,285,568
12Jul 12, 2023 13:145,71794,967,42518,294,54802,273,280