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 6, 2025 14:06Chandrasekaran AkashChandrasekaran AkashError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 6, 2025 14:0700000Error: expected "977142 ", got "281334 "stderr
2Apr 6, 2025 14:074,33938,749,94512,894,000991,0002,277,376
3Apr 6, 2025 14:074,34143,550,87712,900,000992,0002,506,752
4Apr 6, 2025 14:144,34127,226,00812,899,000992,0002,506,752
5Apr 6, 2025 14:064,34334,729,77412,904,000992,0002,277,376
6Apr 6, 2025 14:074,34632,629,80313,907,00002,273,280
7Apr 6, 2025 14:074,35232,195,37512,931,000994,0002,277,376
8Apr 6, 2025 14:074,35233,346,08012,933,000994,0002,277,376
9Apr 6, 2025 14:074,35336,291,51312,936,000995,0002,502,656
10Apr 6, 2025 14:144,35630,807,82012,944,000995,0002,498,560
11Apr 6, 2025 14:064,35735,184,34912,946,000995,0002,273,280
12Apr 6, 2025 14:064,35832,307,29612,949,000996,0002,277,376
13Apr 6, 2025 14:074,36229,653,61612,961,000997,0002,502,656
14Apr 6, 2025 14:074,37134,045,80712,989,000999,0002,273,280
15Apr 6, 2025 14:144,37626,145,22813,002,0001,000,0002,277,376
16Apr 6, 2025 14:074,39433,593,34512,053,0002,008,0002,506,752