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 listMay 20, 2021 02:55Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:47zielaj10.00RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:47028,424,8417,901,0001,975,0002,363,392expected "976327 ", got "975520 "
2Apr 20, 2026 23:47027,313,9737,918,0001,979,0002,367,488expected "977703 ", got "978822 "
3Apr 20, 2026 23:47028,065,5847,731,0002,209,0002,359,296expected "974898 ", got "975917 "
4May 20, 2021 02:593,08346,526,2999,864,99202,256,896
5May 20, 2021 02:553,08656,270,0559,875,87002,256,896
6May 20, 2021 02:553,08749,671,0029,879,30102,256,896
7May 20, 2021 02:583,08850,546,6289,880,95202,256,896
8May 20, 2021 02:583,08952,889,1599,884,87702,256,896
9May 20, 2021 02:553,10443,613,1299,934,19502,256,896
10May 20, 2021 02:553,11052,125,6989,952,75002,256,896
11May 20, 2021 02:593,11249,121,2959,957,39402,260,992
12May 20, 2021 02:553,11655,399,5589,971,67902,260,992
13May 20, 2021 02:553,13248,990,70410,021,01202,256,896
14May 20, 2021 02:593,13258,599,42010,021,18902,256,896
15May 20, 2021 02:583,20249,275,36910,245,99402,244,608