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 14:00Franek KortaFranek KortaScore: 4,591Success
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 14:014,57031,866,46014,623,00002,449,408
2Jan 21, 2024 14:004,57230,824,60114,629,00002,531,328
3Jan 21, 2024 14:004,57641,605,57314,644,00002,441,216
4Jan 21, 2024 14:014,57841,509,03114,648,00002,269,184
5Jan 21, 2024 14:014,57942,856,86511,514,0003,140,0002,531,328
6Jan 21, 2024 14:004,57931,502,72114,654,00002,531,328
7Jan 21, 2024 14:014,57935,520,05913,607,0001,046,0002,441,216
8Jan 21, 2024 14:014,58130,911,57512,564,0002,094,0002,531,328
9Jan 21, 2024 14:004,58231,066,53713,615,0001,047,0002,441,216
10Jan 21, 2024 14:004,58334,133,19814,666,00002,265,088
11Jan 21, 2024 14:014,58433,764,33013,622,0001,047,0002,441,216
12Jan 21, 2024 14:004,58438,779,15414,669,00002,531,328
13Jan 21, 2024 14:014,59140,346,70414,690,00002,445,312
14Jan 21, 2024 14:014,59229,665,36213,644,0001,049,0002,437,120
15Jan 21, 2024 14:004,59727,029,48014,711,00002,449,408
16Jan 21, 2024 14:014,60428,858,63414,732,00002,531,328
17Jan 21, 2024 14:004,64740,910,62112,888,0001,982,0002,531,328
18Jan 21, 2024 14:004,65131,013,48314,882,00002,441,216
19Jan 21, 2024 14:004,82279,796,52715,430,16002,187,264
20Jan 21, 2024 14:014,83581,963,67915,473,09402,191,360
21Jan 21, 2024 14:004,83877,525,33315,480,33302,191,360
22Jan 21, 2024 14:014,845105,941,46415,502,80602,187,264
23Jan 21, 2024 14:004,85281,909,08515,526,24502,195,456
24Jan 21, 2024 14:014,86266,326,74415,557,85602,191,360