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 listNov 29, 2024 19:15Joad NacerJoad NacerScore: 4,362Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2024 19:174,33730,609,27012,888,000991,0002,531,328
2Nov 29, 2024 19:174,34029,818,96111,904,0001,984,0002,437,120
3Nov 29, 2024 19:154,34427,691,50712,908,000992,0002,531,328
4Nov 29, 2024 19:174,36031,989,30812,955,000996,0002,420,736
5Nov 29, 2024 19:174,36230,021,48312,961,000997,0002,424,832
6Nov 29, 2024 19:174,36331,261,87412,965,000997,0002,531,328
7Nov 29, 2024 19:154,36536,982,08212,972,000997,0002,531,328
8Nov 29, 2024 19:154,37129,922,09112,987,000999,0002,531,328
9Nov 29, 2024 19:174,37632,278,75913,004,0001,000,0002,531,328