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:18Franek KortaFranek KortaScore: 4,599Success
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:184,56841,432,02014,616,00002,445,312
2Jan 19, 2024 21:184,57442,892,09814,637,00002,527,232
3Jan 19, 2024 21:184,57943,590,40513,606,0001,046,0002,445,312
4Jan 19, 2024 21:184,57931,706,29812,560,0002,093,0002,531,328
5Jan 19, 2024 21:184,58028,684,35514,656,00002,531,328
6Jan 19, 2024 21:184,59533,960,68813,653,0001,050,0002,531,328
7Jan 19, 2024 21:184,59937,215,99514,718,00002,531,328
8Jan 19, 2024 21:184,60143,388,02314,724,00002,437,120
9Jan 19, 2024 21:184,63336,380,61113,838,000988,0002,445,312
10Jan 19, 2024 21:184,82972,308,16615,451,64402,199,552
11Jan 19, 2024 21:184,84766,306,54215,510,44102,207,744
12Jan 19, 2024 21:184,85981,956,11115,548,74702,199,552