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:16Franek KortaFranek KortaScore: 4,668Success
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:164,64736,422,00913,878,000991,0002,441,216
2Jan 19, 2024 21:164,64828,834,99913,884,000991,0002,265,088
3Jan 19, 2024 21:164,64930,018,92413,885,000991,0002,441,216
4Jan 19, 2024 21:164,64938,815,62314,876,00002,269,184
5Jan 19, 2024 21:164,65037,823,81014,879,00002,449,408
6Jan 19, 2024 21:164,65132,701,70313,890,000992,0002,441,216
7Jan 19, 2024 21:164,65142,181,65012,899,0001,984,0002,445,312
8Jan 19, 2024 21:164,65129,425,40512,898,0001,984,0002,531,328
9Jan 19, 2024 21:164,65439,646,56412,908,0001,985,0002,269,184
10Jan 19, 2024 21:164,65533,876,64913,903,000993,0002,531,328
11Jan 19, 2024 21:164,65740,143,62014,903,00002,269,184
12Jan 19, 2024 21:164,66633,956,51612,941,0001,990,0002,527,232
13Jan 19, 2024 21:164,66839,558,95512,946,0001,991,0002,428,928
14Jan 19, 2024 21:164,67030,844,15813,947,000996,0002,445,312
15Jan 19, 2024 21:164,67139,457,02913,950,000996,0002,527,232
16Jan 19, 2024 21:164,67228,193,70512,957,0001,993,0002,269,184
17Jan 19, 2024 21:164,67533,609,66713,962,000997,0002,269,184
18Jan 19, 2024 21:164,68531,494,58213,992,000999,0002,531,328
19Jan 19, 2024 21:164,90297,302,47415,687,13002,199,552
20Jan 19, 2024 21:164,91873,435,63215,738,21502,252,800
21Jan 19, 2024 21:164,92580,131,43715,758,53602,211,840
22Jan 19, 2024 21:164,93775,779,98615,797,23302,211,840
23Jan 19, 2024 21:164,95182,068,07315,844,44202,203,648
24Jan 19, 2024 21:164,97881,174,55515,929,86802,203,648