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 29, 2024 22:14Joad NacerJoad NacerScore: 4,968Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 22:144,94837,679,36914,846,000989,0002,289,664
2May 29, 2024 22:144,94936,231,17913,858,0001,979,0002,273,280
3May 29, 2024 22:144,95232,343,38614,855,000990,0002,383,872
4May 29, 2024 22:144,95434,884,12514,863,000990,0002,273,280
5May 29, 2024 22:144,95541,451,17013,875,0001,982,0002,289,664
6May 29, 2024 22:144,95732,706,30314,871,000991,0002,269,184
7May 29, 2024 22:144,96842,238,18814,838,0001,059,0002,289,664
8May 29, 2024 22:144,97931,860,68713,941,0001,991,0002,289,664
9May 29, 2024 22:144,99832,309,51613,994,0001,999,0002,289,664
10May 29, 2024 22:145,08360,690,04916,264,28102,306,048
11May 29, 2024 22:145,09681,511,29816,306,34102,306,048
12May 29, 2024 22:145,10288,188,77116,326,73302,297,856