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 11, 2024 16:56Drew GarciaDrew GarciaScore: 5,188Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 16:565,13643,049,78116,436,00002,269,184
2Apr 11, 2024 16:565,14841,877,44316,472,00002,269,184
3Apr 11, 2024 16:565,14834,709,63815,443,0001,029,0002,269,184
4Apr 11, 2024 16:565,15236,737,75515,456,0001,030,0002,400,256
5Apr 11, 2024 16:565,16841,044,40115,506,0001,033,0002,408,448
6Apr 11, 2024 16:565,18033,369,42316,575,00002,269,184
7Apr 11, 2024 16:565,18844,232,25214,526,0002,075,0002,269,184
8Apr 11, 2024 16:565,19941,728,16216,636,00002,273,280
9Apr 11, 2024 16:565,20242,171,33115,605,0001,040,0002,510,848
10Apr 11, 2024 16:565,51489,794,79017,645,28102,306,048
11Apr 11, 2024 16:565,52976,327,42117,693,92302,297,856
12Apr 11, 2024 16:565,56073,954,76917,790,46102,293,760