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 8, 2023 23:39Andrew MoonAndrew MoonScore: 5,272Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2023 23:395,20838,342,83915,624,0001,041,0002,265,088
2Jul 8, 2023 23:395,22238,575,51616,710,00002,383,872
3Jul 8, 2023 23:395,23142,632,28216,738,00002,387,968
4Jul 8, 2023 23:395,26847,894,97615,865,000991,0002,265,088
5Jul 8, 2023 23:395,27146,427,28915,876,000992,0002,265,088
6Jul 8, 2023 23:395,27142,361,61816,868,00002,265,088
7Jul 8, 2023 23:395,27247,334,01015,879,000992,0002,498,560
8Jul 8, 2023 23:395,27433,913,34515,885,000992,0002,265,088
9Jul 8, 2023 23:395,27641,959,96815,891,000993,0002,506,752
10Jul 8, 2023 23:395,45866,620,40717,465,87702,273,280
11Jul 8, 2023 23:395,46577,699,70217,488,67402,273,280
12Jul 8, 2023 23:395,47583,525,81517,521,05902,277,376