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:40Franek KortaFranek KortaScore: 4,704Success
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:404,67434,074,12013,961,000997,0002,441,216
2Jan 18, 2024 22:404,68631,531,29413,997,000999,0002,441,216
3Jan 18, 2024 22:404,69937,628,06814,034,0001,002,0002,437,120
4Jan 18, 2024 22:404,70129,791,72613,037,0002,005,0002,269,184
5Jan 18, 2024 22:404,70337,073,98713,042,0002,006,0002,531,328
6Jan 18, 2024 22:404,70330,441,29313,043,0002,006,0002,445,312
7Jan 18, 2024 22:404,70431,081,38613,046,0002,007,0002,531,328
8Jan 18, 2024 22:404,70641,298,83614,055,0001,003,0002,269,184
9Jan 18, 2024 22:404,71530,039,71012,932,0002,155,0002,531,328
10Jan 18, 2024 22:404,90858,632,40215,705,86702,207,744
11Jan 18, 2024 22:404,94988,469,29615,836,08102,199,552
12Jan 18, 2024 22:404,94985,819,60415,837,52602,203,648