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 14:51Jack FrigaardJack FrigaardScore: 5,479Success
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 14:515,43639,871,54216,371,0001,023,0002,285,568
2Jan 2, 2023 14:515,44832,620,61516,409,0001,025,0002,273,280
3Jan 2, 2023 14:515,45950,503,94916,443,0001,027,0002,285,568
4Jan 2, 2023 14:515,46342,959,73217,481,00002,285,568
5Jan 2, 2023 14:515,46937,995,69216,471,0001,029,0002,285,568
6Jan 2, 2023 14:515,47834,467,54216,500,0001,031,0002,285,568
7Jan 2, 2023 14:515,47946,182,02816,503,0001,031,0002,285,568
8Jan 2, 2023 14:515,48740,513,25417,558,00002,285,568
9Jan 2, 2023 14:515,49539,630,32716,550,0001,034,0002,285,568
10Jan 2, 2023 14:515,63769,349,95618,037,23802,297,856
11Jan 2, 2023 14:515,69582,457,32018,225,24102,310,144
12Jan 2, 2023 14:515,70656,042,61318,259,81002,306,048