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 17, 2024 19:08Joad NacerJoad NacerScore: 4,860Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 19:084,81030,883,39614,365,0001,026,0002,523,136
2Apr 17, 2024 19:084,84236,175,71114,462,0001,033,0002,289,664
3Apr 17, 2024 19:084,84432,373,95115,502,00002,531,328
4Apr 17, 2024 19:084,84745,918,23915,510,00002,277,376
5Apr 17, 2024 19:084,85132,494,63515,522,00002,273,280
6Apr 17, 2024 19:084,85738,730,68514,506,0001,036,0002,289,664
7Apr 17, 2024 19:084,86031,371,74314,515,0001,036,0002,289,664
8Apr 17, 2024 19:084,87337,290,68514,555,0001,039,0002,273,280
9Apr 17, 2024 19:084,90334,268,57715,690,00002,289,664
10Apr 17, 2024 19:085,08697,521,72816,273,91602,174,976
11Apr 17, 2024 19:085,08792,500,21316,279,45602,293,760
12Apr 17, 2024 19:085,08994,665,87116,285,70202,170,880