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 18:59Joad NacerJoad NacerScore: 4,965Success
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 18:594,87739,417,06914,567,0001,040,0002,527,232
2Apr 17, 2024 18:594,89741,976,90114,627,0001,044,0002,289,664
3Apr 17, 2024 18:594,91043,146,09114,665,0001,047,0002,289,664
4Apr 17, 2024 18:594,95932,882,56714,877,000991,0002,269,184
5Apr 17, 2024 18:594,95928,988,10514,878,000991,0002,379,776
6Apr 17, 2024 18:594,96143,770,44813,892,0001,984,0002,269,184
7Apr 17, 2024 18:594,96542,059,34214,895,000993,0002,523,136
8Apr 17, 2024 18:594,96732,180,34113,907,0001,986,0002,289,664
9Apr 17, 2024 18:594,97443,024,50814,856,0001,061,0002,289,664
10Apr 17, 2024 18:595,12165,709,53216,387,82202,301,952
11Apr 17, 2024 18:595,126105,364,43216,402,85602,301,952
12Apr 17, 2024 18:595,15194,272,84016,483,06402,174,976