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 listJul 21, 2023 11:12gchebanovgchebanovScore: 5,199Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 11:125,17334,998,56915,518,0001,034,0002,265,088
2Jul 21, 2023 11:125,17334,063,80615,519,0001,034,0002,387,968
3Jul 21, 2023 11:125,17638,218,46116,563,00002,265,088
4Jul 21, 2023 11:125,18338,571,09915,548,0001,036,0002,383,872
5Jul 21, 2023 11:125,19149,608,22616,611,00002,265,088
6Jul 21, 2023 11:125,19842,262,03115,594,0001,039,0002,527,232
7Jul 21, 2023 11:125,19947,363,02015,598,0001,039,0002,265,088
8Jul 21, 2023 11:125,20942,279,05216,669,00002,396,160
9Jul 21, 2023 11:125,21943,754,72216,701,00002,371,584
10Jul 21, 2023 11:125,36175,807,23117,154,63302,269,184
11Jul 21, 2023 11:125,38584,013,91417,230,85702,285,568
12Jul 21, 2023 11:125,39078,739,26317,247,32202,281,472