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 20, 2024 15:05Joad NacerJoad NacerScore: 4,834Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 15:054,80439,656,19715,374,00002,273,280
2Apr 20, 2024 15:054,80836,836,34213,336,0002,051,0002,285,568
3Apr 20, 2024 15:054,81331,108,86915,402,00002,289,664
4Apr 20, 2024 15:054,81537,731,07515,407,00002,289,664
5Apr 20, 2024 15:054,82436,488,44714,408,0001,029,0002,285,568
6Apr 20, 2024 15:054,82838,097,14915,449,00002,289,664
7Apr 20, 2024 15:054,83432,751,37815,468,00002,289,664
8Apr 20, 2024 15:054,85532,500,94814,502,0001,035,0002,269,184
9Apr 20, 2024 15:054,89235,311,17814,611,0001,043,0002,289,664
10Apr 20, 2024 15:055,08895,384,75016,281,69402,301,952
11Apr 20, 2024 15:055,11493,497,30916,365,01102,297,856
12Apr 20, 2024 15:055,11974,652,52816,379,76602,301,952