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 18, 2024 09:17Joad NacerJoad NacerScore: 5,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 09:174,96934,058,24413,914,0001,987,0002,527,232
2Apr 18, 2024 09:174,97637,459,99413,933,0001,990,0002,289,664
3Apr 18, 2024 09:174,97835,024,08513,938,0001,991,0002,289,664
4Apr 18, 2024 09:174,99141,595,27413,975,0001,996,0002,523,136
5Apr 18, 2024 09:174,99435,874,78613,983,0001,997,0002,273,280
6Apr 18, 2024 09:175,00437,827,58614,011,0002,001,0002,269,184
7Apr 18, 2024 09:175,01147,644,05914,030,0002,004,0002,289,664
8Apr 18, 2024 09:175,01947,578,72415,057,0001,003,0002,269,184
9Apr 18, 2024 09:175,04033,028,60415,121,0001,008,0002,277,376
10Apr 18, 2024 09:175,05582,180,12016,174,92402,301,952
11Apr 18, 2024 09:175,05664,661,89716,178,73502,297,856
12Apr 18, 2024 09:175,06987,051,90416,222,09702,174,976