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 3, 2023 22:08Jack FrigaardJack FrigaardScore: 5,769Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 22:085,72935,596,38917,314,0001,018,0002,523,136
2Jan 3, 2023 22:085,73143,652,60916,301,0002,037,0002,289,664
3Jan 3, 2023 22:085,75242,209,93416,362,0002,045,0002,269,184
4Jan 3, 2023 22:085,75240,080,52617,385,0001,022,0002,289,664
5Jan 3, 2023 22:085,76435,088,70317,421,0001,024,0002,289,664
6Jan 3, 2023 22:085,76846,764,93517,434,0001,025,0002,289,664
7Jan 3, 2023 22:085,76941,038,81617,435,0001,025,0002,531,328
8Jan 3, 2023 22:085,78041,058,42517,468,0001,027,0002,523,136
9Jan 3, 2023 22:085,78238,122,73118,501,00002,289,664
10Jan 3, 2023 22:086,01188,898,50419,236,09802,301,952
11Jan 3, 2023 22:086,03489,682,13819,308,78602,289,664
12Jan 3, 2023 22:086,08877,107,25919,481,48102,297,856