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 11, 2021 20:51Mikhail DektyarevMikhail DektyarevScore: 5,892Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2021 20:515,81942,111,89518,620,00002,392,064
2May 11, 2021 20:515,82546,672,63617,606,0001,035,0002,523,136
3May 11, 2021 20:515,83140,077,73118,658,00002,392,064
4May 11, 2021 20:515,83241,068,91418,661,00002,523,136
5May 11, 2021 20:515,83636,699,83816,601,0002,075,0002,519,040
6May 11, 2021 20:515,83948,390,23217,647,0001,038,0002,387,968
7May 11, 2021 20:515,83948,899,95317,646,0001,038,0002,392,064
8May 11, 2021 20:515,84245,212,80317,655,0001,038,0002,392,064
9May 11, 2021 20:515,84641,075,55216,629,0002,078,0002,519,040
10May 11, 2021 20:515,84742,493,91618,711,00002,519,040
11May 11, 2021 20:515,85344,882,50817,688,0001,040,0002,396,160
12May 11, 2021 20:515,88844,099,03616,860,0001,983,0002,396,160
13May 11, 2021 20:515,89243,485,81416,870,0001,984,0002,383,872
14May 11, 2021 20:515,89345,056,94515,881,0002,977,0002,260,992
15May 11, 2021 20:515,89842,560,67417,880,000993,0002,498,560
16May 11, 2021 20:515,89949,995,24216,891,0001,987,0002,519,040
17May 11, 2021 20:515,90353,520,05117,894,000994,0002,519,040
18May 11, 2021 20:515,90450,780,98115,911,0002,983,0002,519,040
19May 11, 2021 20:516,05497,147,84219,373,87902,285,568
20May 11, 2021 20:516,05977,420,18619,387,22602,285,568
21May 11, 2021 20:516,06490,562,27419,405,73002,269,184
22May 11, 2021 20:516,07163,987,96819,426,49602,285,568
23May 11, 2021 20:516,07882,946,55619,448,30102,277,376
24May 11, 2021 20:516,09666,544,43119,506,28502,269,184