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 16, 2024 22:04Joad NacerJoad NacerScore: 5,752Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 22:045,68239,710,20616,162,0002,020,0002,265,088
2Apr 16, 2024 22:045,70341,263,28816,223,0002,027,0002,289,664
3Apr 16, 2024 22:045,71740,897,77916,261,0002,032,0002,289,664
4Apr 16, 2024 22:045,72743,775,59917,308,0001,018,0002,269,184
5Apr 16, 2024 22:045,74542,426,44717,362,0001,021,0002,273,280
6Apr 16, 2024 22:045,74543,044,32018,383,00002,289,664
7Apr 16, 2024 22:045,75251,640,53017,385,0001,022,0002,289,664
8Apr 16, 2024 22:045,76742,290,19217,430,0001,025,0002,289,664
9Apr 16, 2024 22:045,78143,431,58518,499,00002,289,664
10Apr 16, 2024 22:045,88280,341,66718,823,22302,183,168
11Apr 16, 2024 22:045,95182,051,92419,042,81902,301,952
12Apr 16, 2024 22:046,00097,250,13219,201,08902,297,856