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 listNov 29, 2024 18:16Joad NacerJoad NacerScore: 4,376Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2024 18:174,34433,650,43311,915,0001,985,0002,531,328
2Nov 29, 2024 18:164,35930,559,54912,952,000996,0002,428,928
3Nov 29, 2024 18:164,36131,025,88212,959,000996,0002,433,024
4Nov 29, 2024 18:164,36632,014,90811,975,0001,995,0002,531,328
5Nov 29, 2024 18:174,36931,867,49912,982,000998,0002,269,184
6Nov 29, 2024 18:174,37228,246,53212,992,000999,0002,433,024
7Nov 29, 2024 18:174,37330,674,30012,996,000999,0002,420,736
8Nov 29, 2024 18:164,37632,816,47913,003,0001,000,0002,531,328
9Nov 29, 2024 18:164,37629,516,89113,004,0001,000,0002,510,848
10Nov 29, 2024 18:174,37738,169,15413,006,0001,000,0002,437,120
11Nov 29, 2024 18:174,38833,955,16313,040,0001,003,0002,437,120
12Nov 29, 2024 18:164,39137,032,93113,048,0001,003,0002,433,024
13Nov 29, 2024 18:164,39330,314,28713,054,0001,004,0002,531,328
14Nov 29, 2024 18:164,53327,985,47514,504,00002,531,328
15Nov 29, 2024 18:164,71942,287,65613,089,0002,013,0002,428,928