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 listJul 8, 2023 11:58Andrew MoonAndrew MoonScore: 5,349Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2023 11:585,29236,995,09914,943,0001,992,0002,387,968
2Jul 8, 2023 11:585,31332,873,75915,000,0002,000,0002,265,088
3Jul 8, 2023 11:585,31548,147,96515,007,0002,000,0002,527,232
4Jul 8, 2023 11:585,32642,367,68215,038,0002,005,0002,265,088
5Jul 8, 2023 11:585,32849,325,13515,044,0002,005,0002,265,088
6Jul 8, 2023 11:585,34348,527,34416,093,0001,005,0002,265,088
7Jul 8, 2023 11:585,34943,076,37016,110,0001,006,0002,387,968
8Jul 8, 2023 11:585,35333,784,66615,116,0002,015,0002,265,088
9Jul 8, 2023 11:585,38847,056,47615,213,0002,028,0002,265,088
10Jul 8, 2023 11:585,54973,521,77317,757,10402,293,760
11Jul 8, 2023 11:585,55394,353,52017,768,30902,273,280
12Jul 8, 2023 11:585,59380,397,75417,897,01602,277,376