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:07Joad NacerJoad NacerScore: 4,976Success
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:074,95733,388,45613,880,0001,982,0002,510,848
2Apr 17, 2024 19:074,95834,104,48614,874,000991,0002,277,376
3Apr 17, 2024 19:074,96132,515,28714,884,000992,0002,273,280
4Apr 17, 2024 19:074,96441,826,84413,899,0001,985,0002,289,664
5Apr 17, 2024 19:074,96941,768,58214,842,0001,060,0002,289,664
6Apr 17, 2024 19:074,97333,644,07613,924,0001,989,0002,289,664
7Apr 17, 2024 19:074,97633,288,56714,929,000995,0002,273,280
8Apr 17, 2024 19:074,97939,049,46013,943,0001,991,0002,265,088
9Apr 17, 2024 19:074,99644,312,97013,988,0001,998,0002,289,664
10Apr 17, 2024 19:075,14090,666,29616,448,15102,306,048
11Apr 17, 2024 19:075,15668,248,20416,500,24902,301,952
12Apr 17, 2024 19:075,17582,862,27216,560,76202,297,856