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 listApr 17, 2024 19:07Joad NacerJoad NacerScore: 4,964Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 19:074,88644,322,83815,634,00002,289,664
2Apr 17, 2024 19:074,90244,963,70814,642,0001,045,0002,289,664
3Apr 17, 2024 19:074,90645,346,10814,654,0001,046,0002,289,664
4Apr 17, 2024 19:074,92340,623,18214,704,0001,050,0002,392,064
5Apr 17, 2024 19:074,95340,462,14614,860,000990,0002,289,664
6Apr 17, 2024 19:074,95633,325,00314,867,000991,0002,527,232
7Apr 17, 2024 19:074,95646,407,32514,869,000991,0002,527,232
8Apr 17, 2024 19:074,96143,177,84614,883,000992,0002,289,664
9Apr 17, 2024 19:074,96142,736,10113,892,0001,984,0002,527,232
10Apr 17, 2024 19:074,96143,254,88413,892,0001,984,0002,289,664
11Apr 17, 2024 19:074,96247,333,22014,887,000992,0002,289,664
12Apr 17, 2024 19:074,96331,806,02014,888,000992,0002,289,664
13Apr 17, 2024 19:074,96432,850,99114,894,000992,0002,273,280
14Apr 17, 2024 19:074,96734,534,49913,907,0001,986,0002,265,088
15Apr 17, 2024 19:074,97345,897,75913,924,0001,989,0002,289,664
16Apr 17, 2024 19:074,97331,463,12313,926,0001,989,0002,285,568
17Apr 17, 2024 19:074,97334,190,72413,926,0001,989,0002,519,040
18Apr 17, 2024 19:074,98833,532,75713,967,0001,995,0002,277,376
19Apr 17, 2024 19:075,13781,684,63816,437,64902,301,952
20Apr 17, 2024 19:075,14579,692,97216,462,54802,179,072
21Apr 17, 2024 19:075,15177,816,86216,481,76702,301,952
22Apr 17, 2024 19:075,15764,801,19116,501,19402,301,952
23Apr 17, 2024 19:075,17660,945,01916,563,63002,174,976
24Apr 17, 2024 19:075,19285,420,19216,615,82502,297,856