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 listAug 14, 2022 19:49Franek KortaFranek KortaScore: 5,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2022 19:495,31443,658,55216,005,0001,000,0002,441,216
2Aug 14, 2022 19:495,31738,642,28616,015,0001,000,0002,449,408
3Aug 14, 2022 19:495,32736,829,97216,043,0001,002,0002,445,312
4Aug 14, 2022 19:495,32938,584,56416,049,0001,003,0002,269,184
5Aug 14, 2022 19:495,33139,525,22815,053,0002,007,0002,527,232
6Aug 14, 2022 19:495,33335,284,97114,053,0003,011,0002,441,216
7Aug 14, 2022 19:495,34039,725,56415,078,0002,010,0002,269,184
8Aug 14, 2022 19:495,35642,461,34415,122,0002,016,0002,531,328
9Aug 14, 2022 19:495,36037,140,49816,143,0001,008,0002,531,328
10Aug 14, 2022 19:495,55982,947,41617,787,90802,199,552
11Aug 14, 2022 19:495,57986,353,75017,851,98702,195,456
12Aug 14, 2022 19:495,60453,285,25817,932,42502,195,456