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 listJan 2, 2023 16:49Jack FrigaardJack FrigaardScore: 5,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:494,96542,214,56814,895,000993,0002,285,568
2Jan 2, 2023 16:494,99632,834,86914,988,000999,0002,273,280
3Jan 2, 2023 16:494,99632,815,34113,990,0001,998,0002,285,568
4Jan 2, 2023 16:494,99936,872,81113,998,0001,999,0002,285,568
5Jan 2, 2023 16:495,00541,144,65114,015,0002,002,0002,285,568
6Jan 2, 2023 16:495,01739,350,38014,047,0002,006,0002,269,184
7Jan 2, 2023 16:495,03337,004,01414,093,0002,013,0002,527,232
8Jan 2, 2023 16:495,04833,209,19115,143,0001,009,0002,269,184
9Jan 2, 2023 16:495,05939,859,66815,179,0001,011,0002,273,280
10Jan 2, 2023 16:495,24298,337,21216,775,45202,297,856
11Jan 2, 2023 16:495,43993,166,02317,404,41602,306,048
12Jan 2, 2023 16:495,60986,791,41317,949,88702,265,088