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 24, 2021 18:17Dmitry DolgopolovDmitry DolgopolovScore: 5,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2021 18:165,00039,734,60114,000,0002,000,0002,273,280
2May 24, 2021 18:165,00336,810,26614,010,0002,001,0002,273,280
3May 24, 2021 18:175,00436,767,18314,012,0002,001,0002,273,280
4May 24, 2021 18:165,00939,229,10214,026,0002,003,0002,535,424
5May 24, 2021 18:175,01241,348,26414,033,0002,004,0002,437,120
6May 24, 2021 18:165,01335,919,99714,038,0002,005,0002,273,280
7May 24, 2021 18:175,01437,753,94014,039,0002,005,0002,535,424
8May 24, 2021 18:165,01531,968,32414,043,0002,006,0002,535,424
9May 24, 2021 18:165,02337,209,27914,063,0002,009,0002,535,424
10May 24, 2021 18:175,02431,427,17614,068,0002,009,0002,273,280
11May 24, 2021 18:175,02829,773,34514,078,0002,011,0002,437,120
12May 24, 2021 18:175,02833,649,29414,080,0002,011,0002,445,312
13May 24, 2021 18:175,03339,776,55314,094,0002,013,0002,445,312
14May 24, 2021 18:165,03336,465,22714,091,0002,013,0002,445,312
15May 24, 2021 18:175,03442,130,75614,097,0002,013,0002,445,312
16May 24, 2021 18:175,03540,738,13814,098,0002,014,0002,273,280
17May 24, 2021 18:165,04139,847,93014,116,0002,016,0002,273,280
18May 24, 2021 18:165,04133,825,84314,115,0002,016,0002,273,280
19May 24, 2021 18:165,25540,088,04316,817,03902,195,456
20May 24, 2021 18:175,26937,937,33716,860,62902,195,456
21May 24, 2021 18:165,32676,970,38217,041,63402,199,552
22May 24, 2021 18:165,38563,163,44017,231,34102,195,456
23May 24, 2021 18:175,49184,469,23117,572,59602,191,360
24May 24, 2021 18:175,49650,807,80517,588,02002,195,456