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 16:25Andrew MoonAndrew MoonScore: 5,352Success
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 16:255,30140,702,59014,969,0001,995,0002,265,088
2Jul 8, 2023 16:255,31343,597,55916,003,0001,000,0002,265,088
3Jul 8, 2023 16:255,31431,605,94315,006,0002,000,0002,265,088
4Jul 8, 2023 16:255,32946,141,98616,051,0001,003,0002,265,088
5Jul 8, 2023 16:255,33043,053,36616,054,0001,003,0002,383,872
6Jul 8, 2023 16:255,34045,445,38216,082,0001,005,0002,392,064
7Jul 8, 2023 16:255,35231,940,39516,119,0001,007,0002,392,064
8Jul 8, 2023 16:255,36144,031,91115,136,0002,018,0002,387,968
9Jul 8, 2023 16:255,41144,184,49516,297,0001,018,0002,265,088
10Jul 8, 2023 16:255,53175,985,24217,698,91702,277,376
11Jul 8, 2023 16:255,53456,900,71217,707,50002,277,376
12Jul 8, 2023 16:255,56486,247,65217,805,21402,285,568