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 29, 2021 15:00Dmitry DolgopolovDmitry DolgopolovScore: 4,993Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2021 15:014,96031,240,11513,888,0001,984,0002,273,280
2May 29, 2021 15:014,96140,994,24313,892,0001,984,0002,453,504
3May 29, 2021 15:014,96248,095,14013,894,0001,984,0002,273,280
4May 29, 2021 15:004,96330,032,93713,898,0001,985,0002,449,408
5May 29, 2021 15:004,96830,990,41113,911,0001,987,0002,535,424
6May 29, 2021 15:004,97043,630,27114,843,0001,060,0002,445,312
7May 29, 2021 15:014,97143,801,56913,918,0001,988,0002,273,280
8May 29, 2021 15:014,97336,634,43214,852,0001,060,0002,535,424
9May 29, 2021 15:004,97641,188,23813,933,0001,990,0002,535,424
10May 29, 2021 15:014,98034,363,29013,944,0001,992,0002,535,424
11May 29, 2021 15:014,98832,168,13714,965,000997,0002,535,424
12May 29, 2021 15:004,98930,341,56913,969,0001,995,0002,273,280
13May 29, 2021 15:004,99331,548,81513,979,0001,997,0002,273,280
14May 29, 2021 15:004,99948,080,46113,997,0001,999,0002,449,408
15May 29, 2021 15:015,00338,057,97615,010,0001,000,0002,445,312
16May 29, 2021 15:005,00337,645,29214,010,0002,001,0002,273,280
17May 29, 2021 15:005,00739,873,18714,019,0002,002,0002,437,120
18May 29, 2021 15:015,01137,588,20614,031,0002,004,0002,535,424
19May 29, 2021 15:015,19785,717,50016,631,79902,199,552
20May 29, 2021 15:005,19794,809,18216,630,48102,199,552
21May 29, 2021 15:005,20973,086,29016,669,52502,199,552
22May 29, 2021 15:015,21470,916,31716,685,10902,195,456
23May 29, 2021 15:015,21688,995,83716,691,40502,252,800
24May 29, 2021 15:005,25589,226,29116,816,66202,191,360