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:56Franek KortaFranek KortaScore: 4,566Success
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:564,53135,083,23814,499,00002,441,216
2Jan 21, 2024 15:564,53832,203,56414,522,00002,269,184
3Jan 21, 2024 15:564,54331,716,15814,538,00002,441,216
4Jan 21, 2024 15:564,54329,884,65614,539,00002,531,328
5Jan 21, 2024 15:564,54728,020,78414,549,00002,437,120
6Jan 21, 2024 15:564,54935,756,07314,556,00002,441,216
7Jan 21, 2024 15:564,55035,521,29014,561,00002,445,312
8Jan 21, 2024 15:564,55035,076,33814,561,00002,527,232
9Jan 21, 2024 15:564,55030,206,77314,560,00002,445,312
10Jan 21, 2024 15:564,55939,915,60014,589,00002,527,232
11Jan 21, 2024 15:564,56426,840,55213,561,0001,043,0002,269,184
12Jan 21, 2024 15:564,56438,301,01014,604,00002,531,328
13Jan 21, 2024 15:564,56635,390,42214,612,00002,531,328
14Jan 21, 2024 15:564,56835,331,08114,618,00002,437,120
15Jan 21, 2024 15:564,57028,547,15413,580,0001,044,0002,531,328
16Jan 21, 2024 15:564,57139,994,94714,626,00002,445,312
17Jan 21, 2024 15:564,57440,131,95514,636,00002,531,328
18Jan 21, 2024 15:564,57532,028,83014,640,00002,437,120
19Jan 21, 2024 15:564,80570,217,01415,376,28102,203,648
20Jan 21, 2024 15:564,81283,779,10815,398,05302,207,744
21Jan 21, 2024 15:564,81483,276,55315,405,94602,207,744
22Jan 21, 2024 15:564,82081,487,53115,425,20602,199,552
23Jan 21, 2024 15:564,82296,493,70715,428,85602,203,648
24Jan 21, 2024 15:564,83077,022,27715,456,91302,207,744