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 8, 2024 21:53Joad NacerJoad NacerScore: 5,009Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 21:534,95939,539,89413,886,0001,983,0002,269,184
2May 8, 2024 21:534,96639,381,17213,905,0001,986,0002,289,664
3May 8, 2024 21:534,97232,497,29113,922,0001,988,0002,289,664
4May 8, 2024 21:534,97440,371,23513,927,0001,989,0002,289,664
5May 8, 2024 21:534,97838,251,54913,938,0001,991,0002,289,664
6May 8, 2024 21:534,98237,378,15514,945,000996,0002,289,664
7May 8, 2024 21:534,98239,725,08813,949,0001,992,0002,265,088
8May 8, 2024 21:534,98839,650,28513,967,0001,995,0002,289,664
9May 8, 2024 21:534,98940,947,60613,970,0001,995,0002,265,088
10May 8, 2024 21:534,99235,491,38014,976,000998,0002,269,184
11May 8, 2024 21:535,00338,695,78314,009,0002,001,0002,269,184
12May 8, 2024 21:535,00636,743,86714,017,0002,002,0002,289,664
13May 8, 2024 21:535,00938,751,65515,029,0001,001,0002,269,184
14May 8, 2024 21:535,01135,152,66714,032,0002,004,0002,289,664
15May 8, 2024 21:535,01738,731,73714,048,0002,006,0002,289,664
16May 8, 2024 21:535,02636,974,44614,074,0002,010,0002,289,664
17May 8, 2024 21:535,03538,518,70415,105,0001,007,0002,289,664
18May 8, 2024 21:535,03844,158,85115,114,0001,007,0002,273,280
19May 8, 2024 21:535,05471,515,84016,174,01902,306,048
20May 8, 2024 21:535,06082,627,80216,190,79102,179,072
21May 8, 2024 21:535,07798,848,36916,246,85002,306,048
22May 8, 2024 21:535,08166,494,53916,257,71402,174,976
23May 8, 2024 21:535,08778,356,81116,278,23602,297,856
24May 8, 2024 21:535,10180,379,66216,324,28202,301,952