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:18Joad NacerJoad NacerScore: 4,998Success
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:184,96431,858,89913,901,0001,985,0002,531,328
2Apr 18, 2024 09:184,96540,964,96013,902,0001,986,0002,273,280
3Apr 18, 2024 09:184,96549,547,02414,830,0001,059,0002,289,664
4Apr 18, 2024 09:184,97031,834,17714,845,0001,060,0002,269,184
5Apr 18, 2024 09:184,98132,949,00613,948,0001,992,0002,289,664
6Apr 18, 2024 09:184,99638,144,23813,990,0001,998,0002,289,664
7Apr 18, 2024 09:184,99835,451,87613,994,0001,999,0002,289,664
8Apr 18, 2024 09:185,00932,737,45314,027,0002,003,0002,269,184
9Apr 18, 2024 09:185,01833,711,96914,052,0002,007,0002,269,184
10Apr 18, 2024 09:185,05389,399,34316,169,06702,293,760
11Apr 18, 2024 09:185,12181,660,31016,385,80702,179,072
12Apr 18, 2024 09:185,13383,970,26316,424,76102,297,856