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:32Joad 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 18:334,32931,009,16012,863,000989,0002,510,848
2Nov 29, 2024 18:324,33427,076,95812,878,000990,0002,531,328
3Nov 29, 2024 18:324,33527,910,86112,882,000990,0002,437,120
4Nov 29, 2024 18:334,33533,608,39512,881,000990,0002,531,328
5Nov 29, 2024 18:324,33736,027,37613,878,00002,531,328
6Nov 29, 2024 18:334,33730,756,05812,887,000991,0002,437,120
7Nov 29, 2024 18:324,33842,348,77112,892,000991,0002,531,328
8Nov 29, 2024 18:334,33835,381,75812,892,000991,0002,433,024
9Nov 29, 2024 18:334,33935,665,50412,895,000991,0002,531,328
10Nov 29, 2024 18:334,34028,192,53612,897,000992,0002,531,328
11Nov 29, 2024 18:334,34034,206,88712,897,000992,0002,269,184
12Nov 29, 2024 18:334,34131,229,52412,899,000992,0002,531,328
13Nov 29, 2024 18:324,34339,710,23612,906,000992,0002,433,024
14Nov 29, 2024 18:334,34540,460,07912,910,000993,0002,428,928
15Nov 29, 2024 18:324,34532,796,43612,911,000993,0002,424,832
16Nov 29, 2024 18:334,34529,773,26413,903,00002,514,944
17Nov 29, 2024 18:324,35833,727,53312,951,000996,0002,269,184
18Nov 29, 2024 18:324,35832,463,92812,951,000996,0002,433,024
19Nov 29, 2024 18:334,37235,823,51811,992,0001,998,0002,424,832
20Nov 29, 2024 18:324,39128,423,61112,044,0002,007,0002,269,184
21Nov 29, 2024 18:334,49137,337,00414,372,00002,433,024
22Nov 29, 2024 18:324,49528,467,87013,357,0001,027,0002,531,328
23Nov 29, 2024 18:324,50130,623,96213,376,0001,028,0002,437,120
24Nov 29, 2024 18:324,79747,437,51013,303,0002,046,0002,428,928