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 listApr 16, 2024 22:19Joad NacerJoad NacerScore: 5,582Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 22:195,49735,257,83716,556,0001,034,0002,289,664
2Apr 16, 2024 22:195,51253,280,24716,602,0001,037,0002,289,664
3Apr 16, 2024 22:195,51746,171,62016,616,0001,038,0002,289,664
4Apr 16, 2024 22:195,52549,221,30616,641,0001,040,0002,289,664
5Apr 16, 2024 22:195,52748,806,64217,685,00002,523,136
6Apr 16, 2024 22:195,52744,274,97817,686,00002,289,664
7Apr 16, 2024 22:195,58243,462,38816,871,000992,0002,289,664
8Apr 16, 2024 22:195,58645,023,04615,889,0001,986,0002,289,664
9Apr 16, 2024 22:195,58843,823,04816,887,000993,0002,269,184
10Apr 16, 2024 22:195,75880,654,40818,426,31302,289,664
11Apr 16, 2024 22:195,78059,092,88518,496,81302,301,952
12Apr 16, 2024 22:195,80858,066,88418,585,10602,297,856