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 11, 2023 18:44Victor MuñozVictor MuñozError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2023 18:3400000Error: expected "976376 ", got "7812500 "
2Jan 11, 2023 18:445,28730,579,25615,923,000995,0002,265,088
3Jan 11, 2023 18:445,29034,439,53014,938,0001,991,0002,387,968
4Jan 11, 2023 18:445,29033,148,07114,938,0001,991,0002,392,064
5Jan 11, 2023 18:445,30046,988,96714,965,0001,995,0002,510,848
6Jan 11, 2023 18:445,30342,896,45814,973,0001,996,0002,387,968
7Jan 11, 2023 18:445,31250,789,28314,998,0001,999,0002,527,232
8Jan 11, 2023 18:445,31234,923,86414,998,0001,999,0002,265,088
9Jan 11, 2023 18:445,31334,394,70315,000,0002,000,0002,265,088
10Jan 11, 2023 18:445,31741,899,28015,013,0002,001,0002,387,968
11Jan 11, 2023 18:445,31742,027,77015,012,0002,001,0002,387,968
12Jan 11, 2023 18:445,32245,980,54415,026,0002,003,0002,383,872
13Jan 11, 2023 18:445,32340,885,36515,031,0002,004,0002,265,088
14Jan 11, 2023 18:445,32447,584,07715,034,0002,004,0002,265,088
15Jan 11, 2023 18:445,32434,027,46215,032,0002,004,0002,379,776
16Jan 11, 2023 18:445,33134,555,14516,056,0001,003,0002,387,968
17Jan 11, 2023 18:445,33343,309,90016,061,0001,003,0002,265,088
18Jan 11, 2023 18:445,33342,430,41515,058,0002,007,0002,265,088
19Jan 11, 2023 18:445,33832,943,15016,077,0001,004,0002,383,872
20Jan 11, 2023 18:445,52257,497,18717,671,00702,281,472
21Jan 11, 2023 18:445,55467,781,88417,773,39402,273,280
22Jan 11, 2023 18:445,56097,296,17517,790,41702,285,568
23Jan 11, 2023 18:445,56585,486,71217,806,45002,285,568
24Jan 11, 2023 18:445,60086,131,50317,918,92802,277,376
25Jan 11, 2023 18:445,60278,321,99717,926,93002,269,184