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:52Jack FrigaardJack FrigaardScore: 4,872Success
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:524,81032,419,74714,365,0001,026,0002,269,184
2Jan 2, 2023 16:524,82038,750,39915,423,00002,285,568
3Jan 2, 2023 16:524,82637,621,90614,414,0001,029,0002,379,776
4Jan 2, 2023 16:524,82632,785,06814,415,0001,029,0002,531,328
5Jan 2, 2023 16:524,83637,103,75315,474,00002,285,568
6Jan 2, 2023 16:524,83730,437,79715,479,00002,285,568
7Jan 2, 2023 16:524,87240,641,40915,590,00002,531,328
8Jan 2, 2023 16:524,87531,799,79614,560,0001,040,0002,285,568
9Jan 2, 2023 16:524,87848,125,53915,611,00002,277,376
10Jan 2, 2023 16:525,05979,621,21416,189,00402,281,472
11Jan 2, 2023 16:525,081104,011,62516,260,50402,297,856
12Jan 2, 2023 16:525,11180,730,50616,356,75602,289,664