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 16, 2024 22:22Joad NacerJoad NacerScore: 5,575Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 22:225,48739,417,92116,525,0001,032,0002,289,664
2Apr 16, 2024 22:225,50840,811,91116,588,0001,036,0002,531,328
3Apr 16, 2024 22:225,51644,799,82216,614,0001,038,0002,277,376
4Apr 16, 2024 22:225,52842,217,70016,651,0001,040,0002,289,664
5Apr 16, 2024 22:225,53745,823,87316,676,0001,042,0002,289,664
6Apr 16, 2024 22:225,53838,601,19615,752,0001,969,0002,269,184
7Apr 16, 2024 22:225,57533,792,09815,858,0001,982,0002,289,664
8Apr 16, 2024 22:225,57635,476,07316,852,000991,0002,281,472
9Apr 16, 2024 22:225,58247,440,56316,870,000992,0002,289,664
10Apr 16, 2024 22:225,76097,645,20718,430,79602,301,952
11Apr 16, 2024 22:225,76976,059,34918,459,60602,174,976
12Apr 16, 2024 22:225,81883,216,41718,618,03502,301,952