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 14:50Jack FrigaardJack FrigaardScore: 5,483Success
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 14:505,42931,136,30015,330,0002,044,0002,273,280
2Jan 2, 2023 14:505,44637,714,29516,402,0001,025,0002,285,568
3Jan 2, 2023 14:505,45541,678,15616,429,0001,026,0002,285,568
4Jan 2, 2023 14:505,45746,249,71716,434,0001,027,0002,285,568
5Jan 2, 2023 14:505,46441,034,15116,456,0001,028,0002,269,184
6Jan 2, 2023 14:505,47238,623,78815,450,0002,060,0002,285,568
7Jan 2, 2023 14:505,48339,054,06516,512,0001,032,0002,285,568
8Jan 2, 2023 14:505,48540,308,58416,519,0001,032,0002,285,568
9Jan 2, 2023 14:505,48745,643,93117,559,00002,285,568
10Jan 2, 2023 14:505,66192,253,89918,114,10302,297,856
11Jan 2, 2023 14:505,69284,148,71618,213,36702,306,048
12Jan 2, 2023 14:505,71688,684,01018,290,96102,293,760