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 20, 2023 23:05gchebanovgchebanovScore: 5,208Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 23:055,16832,109,68515,503,0001,033,0002,383,872
2Jul 20, 2023 23:055,17932,174,80116,574,00002,392,064
3Jul 20, 2023 23:055,18934,006,53516,605,00002,396,160
4Jul 20, 2023 23:055,19139,931,72615,572,0001,038,0002,265,088
5Jul 20, 2023 23:055,19242,336,11815,575,0001,038,0002,265,088
6Jul 20, 2023 23:055,20634,057,44915,617,0001,041,0002,265,088
7Jul 20, 2023 23:055,20846,770,92416,666,00002,269,184
8Jul 20, 2023 23:055,21633,103,25016,690,00002,473,984
9Jul 20, 2023 23:055,21636,739,02816,691,00002,392,064
10Jul 20, 2023 23:055,38085,208,32617,216,83502,281,472
11Jul 20, 2023 23:055,38681,171,34717,233,87302,273,280
12Jul 20, 2023 23:055,41884,673,55717,338,31702,285,568