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 19, 2024 21:17Franek KortaFranek KortaScore: 4,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2024 21:174,55336,021,69913,530,0001,040,0002,269,184
2Jan 19, 2024 21:174,55430,088,06314,573,00002,531,328
3Jan 19, 2024 21:174,56343,406,50714,601,00002,445,312
4Jan 19, 2024 21:174,56339,095,63714,601,00002,269,184
5Jan 19, 2024 21:174,56544,444,17313,565,0001,043,0002,449,408
6Jan 19, 2024 21:174,56627,916,40013,569,0001,043,0002,449,408
7Jan 19, 2024 21:174,56935,313,14714,620,00002,441,216
8Jan 19, 2024 21:174,58930,671,12814,684,00002,531,328
9Jan 19, 2024 21:174,58930,345,59313,636,0001,048,0002,531,328
10Jan 19, 2024 21:174,82376,486,44015,433,84402,199,552
11Jan 19, 2024 21:174,83083,770,76015,457,45002,199,552
12Jan 19, 2024 21:174,87683,004,84515,603,61802,207,744