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 listMay 28, 2021 20:44Dmitry DolgopolovDmitry DolgopolovScore: 5,280Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2021 20:445,27235,464,47114,887,0001,984,0002,441,216
2May 28, 2021 20:445,27336,153,61015,881,000992,0002,449,408
3May 28, 2021 20:445,27331,564,40415,882,000992,0002,531,328
4May 28, 2021 20:445,27436,725,36215,885,000992,0002,445,312
5May 28, 2021 20:445,27628,820,73514,898,0001,986,0002,441,216
6May 28, 2021 20:445,27737,967,32414,900,0001,986,0002,273,280
7May 28, 2021 20:445,28045,187,39214,909,0001,987,0002,535,424
8May 28, 2021 20:445,28739,808,78115,862,0001,057,0002,453,504
9May 28, 2021 20:445,29236,278,37514,941,0001,992,0002,441,216
10May 28, 2021 20:445,44661,962,33217,426,55202,203,648
11May 28, 2021 20:445,46183,647,26117,474,17802,256,896
12May 28, 2021 20:445,49048,209,56617,568,77002,207,744