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 9, 2024 14:44Drew GarciaDrew GarciaScore: 5,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 9, 2024 14:445,42239,801,57316,329,0001,020,0002,269,184
2Apr 9, 2024 14:445,45838,477,59316,440,0001,027,0002,281,472
3Apr 9, 2024 14:445,46237,655,01517,479,00002,277,376
4Apr 9, 2024 14:445,46334,359,49117,483,00002,281,472
5Apr 9, 2024 14:445,48346,193,25915,482,0002,064,0002,281,472
6Apr 9, 2024 14:445,48540,743,98416,521,0001,032,0002,281,472
7Apr 9, 2024 14:445,52342,227,28816,636,0001,039,0002,277,376
8Apr 9, 2024 14:445,56448,186,68316,759,0001,047,0002,269,184
9Apr 9, 2024 14:445,60445,401,49815,940,0001,992,0002,277,376
10Apr 9, 2024 14:445,64269,272,87518,052,82102,179,072
11Apr 9, 2024 14:445,64783,027,82518,071,84902,306,048
12Apr 9, 2024 14:445,68991,379,83418,203,40602,174,976