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 8, 2024 21:48Joad NacerJoad NacerScore: 5,005Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 21:484,96632,892,02613,904,0001,986,0002,269,184
2May 8, 2024 21:484,96734,444,43114,834,0001,059,0002,269,184
3May 8, 2024 21:484,97133,265,91113,920,0001,988,0002,289,664
4May 8, 2024 21:484,97841,712,99813,940,0001,991,0002,289,664
5May 8, 2024 21:484,98038,389,58813,944,0001,992,0002,289,664
6May 8, 2024 21:484,98240,977,05213,950,0001,992,0002,289,664
7May 8, 2024 21:484,99135,653,04113,976,0001,996,0002,289,664
8May 8, 2024 21:484,99239,909,56113,977,0001,996,0002,289,664
9May 8, 2024 21:484,99337,436,74613,979,0001,997,0002,289,664
10May 8, 2024 21:484,99632,746,24013,990,0001,998,0002,289,664
11May 8, 2024 21:485,00535,513,31014,015,0002,002,0002,289,664
12May 8, 2024 21:485,00537,508,98014,014,0002,002,0002,289,664
13May 8, 2024 21:485,00533,511,27214,014,0002,002,0002,371,584
14May 8, 2024 21:485,00934,798,61014,025,0002,003,0002,265,088
15May 8, 2024 21:485,01140,381,87514,031,0002,004,0002,289,664
16May 8, 2024 21:485,01233,685,50814,034,0002,004,0002,289,664
17May 8, 2024 21:485,02340,259,96815,071,0001,004,0002,289,664
18May 8, 2024 21:485,05449,211,03714,151,0002,021,0002,289,664
19May 8, 2024 21:485,05876,105,47316,184,99402,256,896
20May 8, 2024 21:485,08758,904,61916,278,89102,174,976
21May 8, 2024 21:485,11581,851,07116,366,83102,301,952
22May 8, 2024 21:485,12174,821,29516,387,18202,301,952
23May 8, 2024 21:485,14081,045,33616,447,46702,297,856
24May 8, 2024 21:485,14999,470,32316,475,56202,293,760