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 22:01Jack FrigaardJack FrigaardScore: 4,833Success
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 22:014,77933,495,71113,255,0002,039,0002,273,280
2Jan 2, 2023 22:014,80430,214,61114,348,0001,024,0002,383,872
3Jan 2, 2023 22:014,80741,843,24713,332,0002,051,0002,523,136
4Jan 2, 2023 22:014,81235,994,20414,372,0001,026,0002,273,280
5Jan 2, 2023 22:014,81535,033,45714,380,0001,027,0002,285,568
6Jan 2, 2023 22:014,83343,287,75714,435,0001,031,0002,285,568
7Jan 2, 2023 22:014,83331,888,23014,436,0001,031,0002,379,776
8Jan 2, 2023 22:014,84336,230,31813,562,0001,937,0002,535,424
9Jan 2, 2023 22:014,84732,896,47014,476,0001,034,0002,285,568
10Jan 2, 2023 22:015,04193,976,17616,129,87902,293,760
11Jan 2, 2023 22:015,09669,068,02216,308,18502,306,048
12Jan 2, 2023 22:015,10087,389,94216,320,73502,301,952