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 01:06Joad NacerJoad NacerScore: 5,479Success
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 01:065,39845,302,36015,241,0002,032,0002,289,664
2Apr 17, 2024 01:065,42033,676,80116,325,0001,020,0002,289,664
3Apr 17, 2024 01:065,43838,654,37815,355,0002,047,0002,285,568
4Apr 17, 2024 01:065,45236,533,50816,419,0001,026,0002,289,664
5Apr 17, 2024 01:065,46036,536,97616,445,0001,027,0002,289,664
6Apr 17, 2024 01:065,46341,140,17316,454,0001,028,0002,527,232
7Apr 17, 2024 01:065,47940,981,03516,501,0001,031,0002,289,664
8Apr 17, 2024 01:065,48146,571,38116,507,0001,031,0002,289,664
9Apr 17, 2024 01:065,58734,981,15015,892,0001,986,0002,289,664
10Apr 17, 2024 01:065,70798,469,73418,262,96002,301,952
11Apr 17, 2024 01:065,71096,246,64918,272,81002,301,952
12Apr 17, 2024 01:065,71686,263,97118,292,68102,297,856