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 21, 2024 13:51Franek KortaFranek KortaScore: 4,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2024 13:514,56627,320,28414,611,00002,265,088
2Jan 21, 2024 13:514,57337,289,24310,452,0004,180,0002,449,408
3Jan 21, 2024 13:514,57334,506,84513,588,0001,045,0002,531,328
4Jan 21, 2024 13:514,57331,785,20213,589,0001,045,0002,441,216
5Jan 21, 2024 13:514,58745,557,79614,677,00002,441,216
6Jan 21, 2024 13:514,58845,818,65914,680,00002,437,120
7Jan 21, 2024 13:514,58830,669,79114,681,00002,265,088
8Jan 21, 2024 13:514,59926,897,50614,718,00002,441,216
9Jan 21, 2024 13:514,65032,131,85214,880,00002,449,408
10Jan 21, 2024 13:514,81983,007,37015,422,09002,207,744
11Jan 21, 2024 13:514,83982,412,44915,483,68402,199,552
12Jan 21, 2024 13:514,84075,449,86015,488,44502,203,648