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 19:54Brian WardBrian WardScore: 5,707Success
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 19:545,67441,935,72916,139,0002,017,0002,289,664
2Apr 13, 2024 19:545,67538,460,17316,142,0002,017,0002,351,104
3Apr 13, 2024 19:545,69340,863,79916,194,0002,024,0002,351,104
4Apr 13, 2024 19:545,69839,473,66716,208,0002,026,0002,289,664
5Apr 13, 2024 19:545,69845,103,11517,221,0001,013,0002,351,104
6Apr 13, 2024 19:545,70145,977,01417,230,0001,013,0002,359,296
7Apr 13, 2024 19:545,70739,499,92617,247,0001,014,0002,367,488
8Apr 13, 2024 19:545,71333,592,38316,249,0002,031,0002,490,368
9Apr 13, 2024 19:545,72141,058,86516,274,0002,034,0002,457,600
10Apr 13, 2024 19:545,89194,659,99318,852,12502,224,128
11Apr 13, 2024 19:545,92068,822,20618,944,47802,260,992
12Apr 13, 2024 19:545,95195,784,21119,042,49202,236,416