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 listApr 13, 2024 16:17Brian WardBrian WardScore: 5,696Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2024 16:175,66543,135,61717,120,0001,007,0002,355,200
2Apr 13, 2024 16:175,67040,244,86016,128,0002,016,0002,289,664
3Apr 13, 2024 16:175,68238,419,04417,171,0001,010,0002,469,888
4Apr 13, 2024 16:175,68342,473,57917,176,0001,010,0002,342,912
5Apr 13, 2024 16:175,69045,178,51116,186,0002,023,0002,289,664
6Apr 13, 2024 16:175,69038,590,39916,186,0002,023,0002,461,696
7Apr 13, 2024 16:175,69645,036,30616,201,0002,025,0002,351,104
8Apr 13, 2024 16:175,71345,005,15416,252,0002,031,0002,355,200
9Apr 13, 2024 16:175,72638,645,58216,287,0002,035,0002,351,104
10Apr 13, 2024 16:175,839100,385,43718,683,63902,220,032
11Apr 13, 2024 16:175,89983,025,00318,877,05902,228,224
12Apr 13, 2024 16:175,90681,168,73818,899,51902,232,320