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:52Franek KortaFranek KortaScore: 4,600Success
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:524,56930,065,17214,620,00002,445,312
2Jan 21, 2024 13:524,57332,887,42611,499,0003,136,0002,531,328
3Jan 21, 2024 13:524,57929,478,87112,560,0002,093,0002,531,328
4Jan 21, 2024 13:524,58340,608,06413,619,0001,047,0002,449,408
5Jan 21, 2024 13:524,58333,499,44214,666,00002,437,120
6Jan 21, 2024 13:524,58634,989,85214,675,00002,445,312
7Jan 21, 2024 13:524,60032,587,83414,720,00002,531,328
8Jan 21, 2024 13:524,60231,463,66314,726,00002,269,184
9Jan 21, 2024 13:524,64339,625,36813,866,000990,0002,269,184
10Jan 21, 2024 13:524,83181,328,97915,457,61002,199,552
11Jan 21, 2024 13:524,84091,865,04315,487,86602,207,744
12Jan 21, 2024 13:524,84359,867,86715,497,11002,199,552