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 19:19Joad NacerJoad NacerScore: 4,343Success
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 19:194,33528,112,40212,881,000990,0002,531,328
2Nov 29, 2024 19:194,33630,434,83411,893,0001,982,0002,531,328
3Nov 29, 2024 19:194,33726,999,43012,886,000991,0002,531,328
4Nov 29, 2024 19:194,33833,443,52612,891,000991,0002,428,928
5Nov 29, 2024 19:194,33936,784,09512,894,000991,0002,531,328
6Nov 29, 2024 19:194,33936,635,49512,895,000991,0002,433,024
7Nov 29, 2024 19:214,34034,601,41912,897,000992,0002,433,024
8Nov 29, 2024 19:194,34033,620,40512,896,000992,0002,269,184
9Nov 29, 2024 19:194,34130,436,10712,899,000992,0002,428,928
10Nov 29, 2024 19:194,34131,024,82011,906,0001,984,0002,531,328
11Nov 29, 2024 19:214,34236,284,70313,895,00002,269,184
12Nov 29, 2024 19:194,34229,571,55812,902,000992,0002,433,024
13Nov 29, 2024 19:194,34330,587,52211,913,0001,985,0002,433,024
14Nov 29, 2024 19:204,34427,252,43112,909,000993,0002,437,120
15Nov 29, 2024 19:204,35129,956,16912,928,000994,0002,510,848
16Nov 29, 2024 19:214,36132,091,94512,960,000996,0002,531,328
17Nov 29, 2024 19:194,36531,639,80012,971,000997,0002,437,120
18Nov 29, 2024 19:204,36726,480,98511,977,0001,996,0002,531,328
19Nov 29, 2024 19:194,37331,767,04012,994,000999,0002,531,328
20Nov 29, 2024 19:194,38231,724,35113,020,0001,001,0002,428,928
21Nov 29, 2024 19:194,38731,874,62612,033,0002,005,0002,531,328
22Nov 29, 2024 19:194,39630,686,88613,062,0001,004,0002,428,928
23Nov 29, 2024 19:194,39734,472,55812,061,0002,010,0002,531,328
24Nov 29, 2024 19:194,71140,116,05513,066,0002,010,0002,424,832