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:49Joad NacerJoad NacerScore: 4,973Success
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:494,95632,874,46115,858,00002,289,664
2May 8, 2024 21:494,95840,228,59714,873,000991,0002,289,664
3May 8, 2024 21:494,95932,628,03713,886,0001,983,0002,387,968
4May 8, 2024 21:494,95947,150,48813,886,0001,983,0002,383,872
5May 8, 2024 21:494,96132,482,86813,891,0001,984,0002,289,664
6May 8, 2024 21:494,96340,204,35413,896,0001,985,0002,273,280
7May 8, 2024 21:494,97331,738,06813,925,0001,989,0002,531,328
8May 8, 2024 21:494,97835,489,89513,938,0001,991,0002,289,664
9May 8, 2024 21:494,99231,782,29314,977,000998,0002,289,664
10May 8, 2024 21:495,36789,642,69617,175,16102,179,072
11May 8, 2024 21:495,39282,926,18817,255,27502,179,072
12May 8, 2024 21:495,41177,658,73017,314,09302,297,856