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 16, 2021 18:14Yuriy LyfenkoYuriy LyfenkoScore: 5,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2021 18:115,3991,444,148,52015,358,0001,919,0002,260,992
2May 16, 2021 18:115,400926,350,97116,265,0001,016,0002,523,136
3May 16, 2021 18:115,4001,472,219,92817,281,00002,260,992
4May 16, 2021 18:115,409537,839,78217,310,00002,387,968
5May 16, 2021 18:115,4361,444,774,24516,373,0001,023,0002,527,232
6May 16, 2021 18:115,443637,842,98817,418,00002,265,088
7May 16, 2021 18:115,4561,525,093,88715,405,0002,054,0002,265,088
8May 16, 2021 18:115,4581,130,651,16017,465,00002,523,136
9May 16, 2021 18:115,464177,893,72816,515,000971,0002,265,088
10May 16, 2021 18:145,6331,272,818,53016,966,0001,060,0002,260,992
11May 16, 2021 18:115,6331,146,285,16318,026,68202,289,664
12May 16, 2021 18:145,6401,080,459,48716,149,0001,899,0002,260,992
13May 16, 2021 18:115,641817,080,46718,052,60102,281,472
14May 16, 2021 18:145,6421,879,122,04917,105,000950,0002,265,088
15May 16, 2021 18:115,6431,752,250,98118,057,53402,281,472
16May 16, 2021 18:145,6531,437,043,41517,086,0001,005,0002,260,992
17May 16, 2021 18:145,6671,360,639,60317,181,000954,0002,523,136
18May 16, 2021 18:145,672547,763,06916,135,0002,016,0002,265,088
19May 16, 2021 18:145,6781,791,976,70316,151,0002,018,0002,523,136
20May 16, 2021 18:145,679449,075,01817,218,000956,0002,519,040
21May 16, 2021 18:145,697973,911,24117,271,000959,0002,523,136
22May 16, 2021 18:146,1081,939,137,87119,544,64602,281,472
23May 16, 2021 18:146,1261,315,454,07619,603,86702,285,568
24May 16, 2021 18:146,165749,388,65819,727,53702,277,376