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 17, 2024 01:45Joad NacerJoad NacerScore: 5,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 01:445,81344,348,15417,567,0001,033,0002,293,760
2Apr 17, 2024 01:445,81845,262,30717,583,0001,034,0002,387,968
3Apr 17, 2024 01:445,82244,710,72217,595,0001,035,0002,293,760
4Apr 17, 2024 01:455,82346,892,92917,599,0001,035,0002,293,760
5Apr 17, 2024 01:445,82347,161,07217,597,0001,035,0002,273,280
6Apr 17, 2024 01:455,82447,337,34217,603,0001,035,0002,531,328
7Apr 17, 2024 01:445,82752,042,14517,610,0001,035,0002,527,232
8Apr 17, 2024 01:445,82843,561,80818,649,00002,269,184
9Apr 17, 2024 01:455,84449,540,28117,663,0001,039,0002,273,280
10Apr 17, 2024 01:445,84548,340,61518,704,00002,293,760
11Apr 17, 2024 01:445,84852,043,82017,675,0001,039,0002,269,184
12Apr 17, 2024 01:455,85050,105,15217,680,0001,040,0002,293,760
13Apr 17, 2024 01:455,85050,486,53917,681,0001,040,0002,293,760
14Apr 17, 2024 01:445,85545,500,14517,695,0001,040,0002,523,136
15Apr 17, 2024 01:455,85547,154,20618,736,00002,269,184
16Apr 17, 2024 01:455,89851,114,04216,886,0001,986,0002,293,760
17Apr 17, 2024 01:455,89948,391,16316,889,0001,987,0002,293,760
18Apr 17, 2024 01:455,90051,209,95317,888,000993,0002,527,232
19Apr 17, 2024 01:455,98589,767,27119,152,74702,293,760
20Apr 17, 2024 01:456,00295,120,57019,207,60402,297,856
21Apr 17, 2024 01:446,009105,439,44119,227,87202,297,856
22Apr 17, 2024 01:446,01088,277,10019,232,68902,260,992
23Apr 17, 2024 01:456,074107,201,72719,438,32702,285,568
24Apr 17, 2024 01:446,10981,226,14119,547,81902,293,760