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:54Jack FrigaardJack FrigaardScore: 5,362Success
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:545,32539,091,37415,037,0002,004,0002,531,328
2Jan 2, 2023 16:545,32739,630,83415,042,0002,005,0002,273,280
3Jan 2, 2023 16:545,33439,590,68715,061,0002,008,0002,285,568
4Jan 2, 2023 16:545,34440,958,48116,096,0001,006,0002,527,232
5Jan 2, 2023 16:545,34539,484,25115,093,0002,012,0002,277,376
6Jan 2, 2023 16:545,35937,870,41715,131,0002,017,0002,523,136
7Jan 2, 2023 16:545,36240,548,22315,141,0002,018,0002,367,488
8Jan 2, 2023 16:545,36334,578,95517,162,00002,392,064
9Jan 2, 2023 16:545,37941,227,66116,201,0001,012,0002,285,568
10Jan 2, 2023 16:545,54681,628,49517,747,72002,252,800
11Jan 2, 2023 16:545,55665,363,15617,779,44102,297,856
12Jan 2, 2023 16:545,58785,130,89817,878,98702,289,664