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 listJan 21, 2024 15:16Franek KortaFranek KortaScore: 4,551Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2024 15:164,52328,802,11513,440,0001,033,0002,531,328
2Jan 21, 2024 15:164,52630,486,29013,450,0001,034,0002,453,504
3Jan 21, 2024 15:164,52740,109,59114,485,00002,441,216
4Jan 21, 2024 15:164,53333,002,29514,504,00002,445,312
5Jan 21, 2024 15:164,53536,167,30814,512,00002,531,328
6Jan 21, 2024 15:164,54431,143,27914,541,00002,531,328
7Jan 21, 2024 15:164,55135,649,51513,524,0001,040,0002,441,216
8Jan 21, 2024 15:164,55331,267,74913,529,0001,040,0002,531,328
9Jan 21, 2024 15:164,58033,448,50613,610,0001,046,0002,269,184
10Jan 21, 2024 15:164,79987,617,51415,355,35602,195,456
11Jan 21, 2024 15:164,80785,586,40715,383,23102,187,264
12Jan 21, 2024 15:164,81094,720,39915,393,38502,199,552