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 13:40Drew GarciaDrew GarciaScore: 5,420Success
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 13:405,36938,104,30915,160,0002,021,0002,404,352
2Apr 17, 2024 13:405,38832,779,60415,212,0002,028,0002,269,184
3Apr 17, 2024 13:405,39439,321,78816,245,0001,015,0002,273,280
4Apr 17, 2024 13:405,39945,620,56415,244,0002,032,0002,269,184
5Apr 17, 2024 13:405,40343,955,83017,288,00002,269,184
6Apr 17, 2024 13:405,40944,753,79016,290,0001,018,0002,408,448
7Apr 17, 2024 13:405,42039,195,96915,304,0002,040,0002,408,448
8Apr 17, 2024 13:405,42145,357,30217,348,00002,269,184
9Apr 17, 2024 13:405,42934,333,82616,352,0001,022,0002,510,848
10Apr 17, 2024 13:405,67382,500,64318,154,09102,301,952
11Apr 17, 2024 13:405,68380,897,95118,184,14802,174,976
12Apr 17, 2024 13:405,68893,739,39418,201,77602,289,664