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 listJan 2, 2023 22:02Jack FrigaardJack FrigaardScore: 4,843Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 22:024,78433,592,18214,288,0001,020,0002,277,376
2Jan 2, 2023 22:024,78837,563,44913,280,0002,043,0002,285,568
3Jan 2, 2023 22:024,80130,402,93814,340,0001,024,0002,285,568
4Jan 2, 2023 22:024,81037,383,56913,340,0002,052,0002,269,184
5Jan 2, 2023 22:024,81535,623,58614,381,0001,027,0002,527,232
6Jan 2, 2023 22:024,84333,355,66813,431,0002,066,0002,285,568
7Jan 2, 2023 22:024,84333,347,25814,466,0001,033,0002,277,376
8Jan 2, 2023 22:024,84930,968,37814,483,0001,034,0002,285,568
9Jan 2, 2023 22:024,86442,519,12314,527,0001,037,0002,285,568
10Jan 2, 2023 22:025,05599,076,57316,175,73202,301,952
11Jan 2, 2023 22:025,06992,088,69216,221,37602,306,048
12Jan 2, 2023 22:025,08881,692,64416,282,82802,285,568