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 25, 2021 23:09Mikhail DektyarevMikhail DektyarevScore: 4,741Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2021 23:094,71232,552,30513,067,0002,010,0002,404,352
2May 25, 2021 23:094,71336,208,17014,075,0001,005,0002,510,848
3May 25, 2021 23:094,71330,391,38713,072,0002,011,0002,404,352
4May 25, 2021 23:094,72033,410,31814,098,0001,007,0002,392,064
5May 25, 2021 23:094,72332,116,90413,100,0002,015,0002,404,352
6May 25, 2021 23:094,72531,970,84214,113,0001,008,0002,281,472
7May 25, 2021 23:094,72630,669,41114,114,0001,008,0002,281,472
8May 25, 2021 23:094,72835,068,59514,121,0001,008,0002,281,472
9May 25, 2021 23:094,72936,516,28614,124,0001,008,0002,281,472
10May 25, 2021 23:094,73242,997,13813,124,0002,019,0002,281,472
11May 25, 2021 23:094,73530,860,88513,131,0002,020,0002,281,472
12May 25, 2021 23:094,73632,441,99114,145,0001,010,0002,494,464
13May 25, 2021 23:094,74133,209,98014,161,0001,011,0002,400,256
14May 25, 2021 23:094,74136,764,35013,148,0002,022,0002,281,472
15May 25, 2021 23:094,74333,003,88613,154,0002,023,0002,281,472
16May 25, 2021 23:094,74633,614,31213,163,0002,025,0002,281,472
17May 25, 2021 23:094,75129,984,72813,176,0002,027,0002,281,472
18May 25, 2021 23:094,75941,662,31113,200,0002,030,0002,281,472
19May 25, 2021 23:094,90048,607,72615,678,50302,289,664
20May 25, 2021 23:094,93775,625,53115,798,08202,293,760
21May 25, 2021 23:094,95060,639,99915,839,27002,301,952
22May 25, 2021 23:094,95167,601,64715,841,78002,289,664
23May 25, 2021 23:094,95865,972,30815,866,08002,289,664
24May 25, 2021 23:094,97748,621,58815,925,76602,293,760