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 15:44Franek KortaFranek KortaScore: 4,537Success
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 15:444,51631,556,49314,452,00002,449,408
2Jan 21, 2024 15:444,51730,877,64514,454,00002,531,328
3Jan 21, 2024 15:444,52240,729,25214,471,00002,441,216
4Jan 21, 2024 15:444,52532,878,45914,480,00002,437,120
5Jan 21, 2024 15:444,52729,789,63713,451,0001,034,0002,531,328
6Jan 21, 2024 15:444,53242,924,59414,503,00002,527,232
7Jan 21, 2024 15:444,53735,203,90614,518,00002,531,328
8Jan 21, 2024 15:444,53834,223,17214,523,00002,531,328
9Jan 21, 2024 15:444,55632,809,79714,580,00002,269,184
10Jan 21, 2024 15:444,79161,088,22115,331,25502,195,456
11Jan 21, 2024 15:444,80261,212,60415,365,49902,187,264
12Jan 21, 2024 15:444,80386,593,56915,371,13702,191,360