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 listDec 11, 2024 23:43MatthiasMatthiasScore: 4,794Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 23:444,76431,638,30114,229,0001,016,0002,260,992
2Dec 11, 2024 23:444,76839,659,68413,225,0002,034,0002,269,184
3Dec 11, 2024 23:434,77232,109,36814,252,0001,018,0002,523,136
4Dec 11, 2024 23:444,77834,112,69813,250,0002,038,0002,265,088
5Dec 11, 2024 23:444,78237,101,32713,263,0002,040,0002,285,568
6Dec 11, 2024 23:434,78332,072,18914,285,0001,020,0002,269,184
7Dec 11, 2024 23:524,78637,597,00213,273,0002,042,0002,285,568
8Dec 11, 2024 23:524,78731,202,72915,318,00002,265,088
9Dec 11, 2024 23:434,78839,329,94213,278,0002,042,0002,265,088
10Dec 11, 2024 23:524,79438,343,48313,297,0002,045,0002,285,568
11Dec 11, 2024 23:444,79532,366,10113,298,0002,045,0002,285,568
12Dec 11, 2024 23:444,79944,186,61214,334,0001,023,0002,285,568
13Dec 11, 2024 23:434,80038,095,89414,337,0001,024,0002,285,568
14Dec 11, 2024 23:444,80443,319,22513,324,0002,049,0002,285,568
15Dec 11, 2024 23:444,82431,100,66214,409,0001,029,0002,523,136
16Dec 11, 2024 23:444,82938,140,74914,423,0001,030,0002,285,568
17Dec 11, 2024 23:434,84341,070,54314,463,0001,033,0002,285,568
18Dec 11, 2024 23:434,97245,182,07014,915,000994,0002,523,136