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 6, 2025 14:39Chandrasekaran AkashChandrasekaran AkashScore: 4,362Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 6, 2025 14:414,33330,805,37812,875,000990,0002,535,424
2Apr 6, 2025 14:414,34241,939,28712,901,000992,0002,277,376
3Apr 6, 2025 14:404,34434,780,51112,908,000992,0002,502,656
4Apr 6, 2025 14:404,34629,740,87812,915,000993,0002,502,656
5Apr 6, 2025 14:414,34745,572,70213,909,00002,502,656
6Apr 6, 2025 14:414,35239,106,82612,933,000994,0002,277,376
7Apr 6, 2025 14:414,35228,168,43813,925,00002,277,376
8Apr 6, 2025 14:404,35235,867,82512,932,000994,0002,498,560
9Apr 6, 2025 14:414,36037,160,11512,957,000996,0002,277,376
10Apr 6, 2025 14:414,36133,414,36312,958,000996,0002,506,752
11Apr 6, 2025 14:414,36230,303,23512,962,000997,0002,506,752
12Apr 6, 2025 14:404,36527,159,05812,970,000997,0002,502,656
13Apr 6, 2025 14:404,36532,823,02112,971,000997,0002,506,752
14Apr 6, 2025 14:414,37335,349,92912,993,000999,0002,277,376
15Apr 6, 2025 14:404,37745,166,25113,005,0001,000,0002,506,752
16Apr 6, 2025 14:384,40434,358,87213,087,0001,006,0002,502,656
17Apr 6, 2025 14:384,40930,033,87812,095,0002,015,0002,277,376
18Apr 6, 2025 14:384,41634,062,79713,121,0001,009,0002,277,376
19Apr 6, 2025 14:397,46154,417,19111,938,00011,938,0002,301,952
20Apr 6, 2025 14:397,46251,530,33611,939,00011,939,0002,301,952
21Apr 6, 2025 14:397,47653,305,72211,961,00011,961,0002,301,952