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 listMay 15, 2021 20:49Yuriy LyfenkoYuriy LyfenkoScore: 5,650Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2021 20:525,41647,727,22617,332,00002,523,136
2May 15, 2021 20:525,42039,392,93716,323,0001,020,0002,523,136
3May 15, 2021 20:525,42239,554,97617,350,00002,260,992
4May 15, 2021 20:525,43343,995,82116,365,0001,022,0002,392,064
5May 15, 2021 20:525,43539,641,59517,392,00002,387,968
6May 15, 2021 20:525,43640,705,49016,373,0001,023,0002,396,160
7May 15, 2021 20:525,45746,892,00916,436,0001,027,0002,265,088
8May 15, 2021 20:525,48535,000,14516,519,0001,032,0002,506,752
9May 15, 2021 20:525,48641,378,47216,523,0001,032,0002,527,232
10May 15, 2021 20:525,60979,393,56517,949,86902,273,280
11May 15, 2021 20:495,64044,672,87614,038,0004,010,0002,392,064
12May 15, 2021 20:495,64744,483,77116,062,0002,007,0002,396,160
13May 15, 2021 20:495,65046,642,69616,071,0002,008,0002,260,992
14May 15, 2021 20:495,65339,999,71116,081,0002,010,0002,527,232
15May 15, 2021 20:495,65436,827,38917,089,0001,005,0002,392,064
16May 15, 2021 20:495,66640,098,74816,116,0002,014,0002,269,184
17May 15, 2021 20:525,67383,904,98018,152,50102,273,280
18May 15, 2021 20:495,67445,801,44315,130,0003,026,0002,514,944
19May 15, 2021 20:495,67446,289,81517,148,0001,008,0002,269,184
20May 15, 2021 20:525,68786,392,51318,197,74702,289,664
21May 15, 2021 20:495,70639,767,39016,230,0002,028,0002,400,256
22May 15, 2021 20:495,87797,068,29118,807,00902,273,280
23May 15, 2021 20:495,88793,003,11318,837,91902,277,376
24May 15, 2021 20:495,89587,917,92718,865,15102,281,472