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 listJul 13, 2021 20:56Andrey TsvetkovAndrey TsvetkovScore: 5,998Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 20:565,95046,037,24217,037,0002,004,0002,531,328
2Jul 13, 2021 20:565,97043,020,91016,089,0003,016,0002,334,720
3Jul 13, 2021 20:565,97544,696,15416,102,0003,019,0002,519,040
4Jul 13, 2021 20:565,98148,986,20816,118,0003,022,0002,334,720
5Jul 13, 2021 20:565,99090,326,57919,166,92002,240,512
6Jul 13, 2021 20:565,99045,091,53717,151,0002,017,0002,531,328
7Jul 13, 2021 20:565,99843,904,57217,174,0002,020,0002,334,720
8Jul 13, 2021 20:566,01340,652,55017,217,0002,025,0002,531,328
9Jul 13, 2021 20:566,01545,526,58417,221,0002,026,0002,347,008
10Jul 13, 2021 20:566,02940,934,24018,279,0001,015,0002,519,040
11Jul 13, 2021 20:566,03280,893,22119,302,33902,240,512
12Jul 13, 2021 20:566,20692,141,11119,860,20502,236,416