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 listMay 22, 2021 19:03Sergey StreminSergey StreminScore: 5,353Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2021 19:035,33342,963,16615,057,0002,007,0002,289,664
2May 22, 2021 19:035,33544,570,46615,063,0002,008,0002,289,664
3May 22, 2021 19:035,33641,740,15216,070,0001,004,0002,289,664
4May 22, 2021 19:035,33839,608,81815,071,0002,009,0002,375,680
5May 22, 2021 19:035,34335,851,98615,088,0002,011,0002,359,296
6May 22, 2021 19:035,34838,888,10816,107,0001,006,0002,289,664
7May 22, 2021 19:035,35238,243,51915,112,0002,014,0002,486,272
8May 22, 2021 19:035,35331,324,09015,113,0002,015,0002,289,664
9May 22, 2021 19:035,38134,213,52415,194,0002,025,0002,363,392
10May 22, 2021 19:035,53799,925,41217,718,47202,236,416
11May 22, 2021 19:035,54176,050,82217,731,17102,236,416
12May 22, 2021 19:035,54177,945,64017,730,31802,228,224
13May 22, 2021 19:035,55590,509,68917,774,73702,240,512
14May 22, 2021 19:035,57987,921,78417,851,80002,248,704
15May 22, 2021 19:035,60682,146,30917,939,86402,236,416