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 12, 2023 13:19Andrew MoonAndrew MoonScore: 5,450Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 12, 2023 13:195,40838,367,68416,287,0001,017,0002,379,776
2Jul 12, 2023 13:195,41836,796,11617,337,00002,387,968
3Jul 12, 2023 13:195,42241,330,87216,330,0001,020,0002,387,968
4Jul 12, 2023 13:195,42840,167,72716,350,0001,021,0002,510,848
5Jul 12, 2023 13:195,43434,890,05417,390,00002,523,136
6Jul 12, 2023 13:195,43832,679,43516,378,0001,023,0002,387,968
7Jul 12, 2023 13:195,45036,345,03717,439,00002,519,040
8Jul 12, 2023 13:195,45441,879,00817,453,00002,379,776
9Jul 12, 2023 13:195,45642,324,44317,460,00002,519,040
10Jul 12, 2023 13:195,682104,149,55018,183,36702,281,472
11Jul 12, 2023 13:195,708116,924,60518,265,46302,269,184
12Jul 12, 2023 13:195,71477,189,70518,284,01402,277,376