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:41Joad NacerJoad NacerScore: 4,389Success
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:414,33533,616,97012,882,000990,0002,424,832
2Nov 29, 2024 18:414,33831,701,07712,890,000991,0002,531,328
3Nov 29, 2024 18:414,34634,945,10412,915,000993,0002,428,928
4Nov 29, 2024 18:414,34926,990,15211,928,0001,988,0002,531,328
5Nov 29, 2024 18:414,38929,474,92113,041,0001,003,0002,510,848
6Nov 29, 2024 18:414,48335,268,77313,322,0001,024,0002,416,640
7Nov 29, 2024 18:414,50332,390,38514,411,00002,428,928
8Nov 29, 2024 18:414,73552,374,21112,311,0002,841,0002,527,232
9Nov 29, 2024 18:414,82537,078,21614,412,0001,029,0002,523,136