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 listJul 20, 2023 22:29gchebanovgchebanovScore: 5,452Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 22:295,40535,008,74916,278,0001,017,0002,265,088
2Jul 20, 2023 22:295,41537,029,02017,327,00002,523,136
3Jul 20, 2023 22:295,44040,205,40417,407,00002,260,992
4Jul 20, 2023 22:295,44143,948,51116,388,0001,024,0002,383,872
5Jul 20, 2023 22:295,44336,320,54417,418,00002,383,872
6Jul 20, 2023 22:295,44932,470,96817,436,00002,387,968
7Jul 20, 2023 22:295,45233,786,34116,420,0001,026,0002,265,088
8Jul 20, 2023 22:295,46140,021,51416,448,0001,028,0002,383,872
9Jul 20, 2023 22:295,48144,761,67316,507,0001,031,0002,379,776
10Jul 20, 2023 22:295,63284,318,67618,021,84602,281,472
11Jul 20, 2023 22:295,66162,618,93318,113,60402,285,568
12Jul 20, 2023 22:295,67290,811,79918,149,24502,269,184