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 17, 2021 19:36Yuriy LyfenkoYuriy LyfenkoScore: 5,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 19:355,326114,884,37914,035,0003,007,0002,400,256
2May 17, 2021 19:355,3301,542,450,41517,057,00002,523,136
3May 17, 2021 19:365,3341,666,657,04416,064,0001,004,0002,392,064
4May 17, 2021 19:355,3382,659,336,15916,078,0001,004,0002,523,136
5May 17, 2021 19:365,3431,134,890,78316,091,0001,005,0002,265,088
6May 17, 2021 19:355,3442,760,574,86117,102,00002,265,088
7May 17, 2021 19:355,3452,779,200,10116,097,0001,006,0002,265,088
8May 17, 2021 19:355,34884,034,08116,106,0001,006,0002,265,088
9May 17, 2021 19:365,3482,556,716,23717,114,00002,527,232
10May 17, 2021 19:365,351358,850,19216,115,0001,007,0002,265,088
11May 17, 2021 19:365,354958,125,45514,110,0003,023,0002,387,968
12May 17, 2021 19:365,3571,706,047,53115,239,0001,904,0002,265,088
13May 17, 2021 19:365,357593,394,02717,143,00002,265,088
14May 17, 2021 19:365,3601,171,858,08716,200,000952,0002,527,232
15May 17, 2021 19:365,361566,983,30414,295,0002,859,0002,265,088
16May 17, 2021 19:355,3632,745,479,15915,254,0001,906,0002,265,088
17May 17, 2021 19:355,3802,600,810,05016,259,000956,0002,265,088
18May 17, 2021 19:355,4031,083,032,96316,330,000960,0002,527,232
19May 17, 2021 19:365,5262,734,954,26617,683,24302,277,376
20May 17, 2021 19:355,536822,314,80017,714,70402,277,376
21May 17, 2021 19:355,539581,054,48817,726,12102,281,472
22May 17, 2021 19:365,5391,516,769,50817,724,74302,277,376
23May 17, 2021 19:365,548991,020,11417,754,59502,273,280
24May 17, 2021 19:355,5631,410,905,02117,802,89402,281,472