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 21, 2024 15:07Franek KortaFranek KortaScore: 4,668Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2024 15:074,64935,258,35513,887,000991,0002,445,312
2Jan 21, 2024 15:074,65347,209,18714,888,00002,269,184
3Jan 21, 2024 15:074,65442,380,31213,900,000992,0002,531,328
4Jan 21, 2024 15:074,65531,824,33612,909,0001,986,0002,269,184
5Jan 21, 2024 15:074,66029,946,82313,917,000994,0002,531,328
6Jan 21, 2024 15:074,66530,529,37213,932,000995,0002,531,328
7Jan 21, 2024 15:074,66831,072,18413,943,000995,0002,531,328
8Jan 21, 2024 15:074,67134,771,68712,954,0001,993,0002,441,216
9Jan 21, 2024 15:074,67232,595,13712,956,0001,993,0002,445,312
10Jan 21, 2024 15:074,92476,220,24615,755,77602,248,704
11Jan 21, 2024 15:074,93352,710,65315,784,08802,191,360
12Jan 21, 2024 15:074,94461,146,72615,820,62602,187,264