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 18, 2024 09:20Joad NacerJoad NacerScore: 5,000Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 09:204,95941,756,23813,885,0001,983,0002,289,664
2Apr 18, 2024 09:204,97336,584,79913,925,0001,989,0002,269,184
3Apr 18, 2024 09:204,97836,411,69513,937,0001,991,0002,289,664
4Apr 18, 2024 09:204,98435,638,89613,956,0001,993,0002,289,664
5Apr 18, 2024 09:204,99534,930,66813,987,0001,998,0002,289,664
6Apr 18, 2024 09:204,99639,506,85714,987,000999,0002,289,664
7Apr 18, 2024 09:205,00040,752,54414,000,0002,000,0002,527,232
8Apr 18, 2024 09:205,01141,052,53914,032,0002,004,0002,289,664
9Apr 18, 2024 09:205,04137,430,50214,116,0002,016,0002,265,088
10Apr 18, 2024 09:205,08599,362,88016,270,45402,252,800
11Apr 18, 2024 09:205,09182,792,50216,290,03902,179,072
12Apr 18, 2024 09:205,12881,457,86516,408,23502,174,976