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 listJan 2, 2023 16:32Jack FrigaardJack FrigaardScore: 5,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:325,50540,258,50617,617,00002,375,680
2Jan 2, 2023 16:325,50744,800,33816,587,0001,036,0002,285,568
3Jan 2, 2023 16:325,51240,408,47116,600,0001,037,0002,285,568
4Jan 2, 2023 16:325,51349,783,06116,603,0001,037,0002,527,232
5Jan 2, 2023 16:325,52644,236,86417,683,00002,285,568
6Jan 2, 2023 16:325,57034,324,96115,845,0001,980,0002,527,232
7Jan 2, 2023 16:325,58146,275,76015,875,0001,984,0002,531,328
8Jan 2, 2023 16:325,58351,073,12915,880,0001,985,0002,285,568
9Jan 2, 2023 16:325,58650,905,97216,881,000993,0002,285,568
10Jan 2, 2023 16:325,72172,804,15018,307,84502,297,856
11Jan 2, 2023 16:325,79260,333,67318,533,38702,289,664
12Jan 2, 2023 16:325,79293,410,30018,534,31202,301,952