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 18, 2024 22:36Franek KortaFranek KortaScore: 5,389Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2024 22:365,33238,933,89716,060,0001,003,0002,531,328
2Jan 18, 2024 22:365,33338,095,70115,057,0002,007,0002,449,408
3Jan 18, 2024 22:365,33531,467,47115,064,0002,008,0002,445,312
4Jan 18, 2024 22:365,35533,345,58716,129,0001,008,0002,441,216
5Jan 18, 2024 22:365,36236,763,84916,148,0001,009,0002,445,312
6Jan 18, 2024 22:365,36647,561,43016,161,0001,010,0002,445,312
7Jan 18, 2024 22:365,38937,317,54915,216,0002,028,0002,269,184
8Jan 18, 2024 22:365,39241,239,27816,240,0001,015,0002,531,328
9Jan 18, 2024 22:365,52742,571,87517,687,00002,269,184
10Jan 18, 2024 22:365,61085,275,93917,952,60602,199,552
11Jan 18, 2024 22:365,62897,836,33018,010,39702,199,552
12Jan 18, 2024 22:365,63282,662,34018,022,11002,199,552