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 22, 2021 17:39Andrey TsvetkovAndrey TsvetkovScore: 5,761Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2021 17:395,72942,050,41416,296,0002,037,0002,523,136
2May 22, 2021 17:395,73041,464,29015,281,0003,056,0002,334,720
3May 22, 2021 17:395,73146,168,47316,301,0002,037,0002,334,720
4May 22, 2021 17:395,73138,259,38115,283,0003,056,0002,334,720
5May 22, 2021 17:395,73539,859,76215,294,0003,058,0002,334,720
6May 22, 2021 17:395,74440,640,45215,318,0003,063,0002,531,328
7May 22, 2021 17:395,75036,483,41416,357,0002,044,0002,334,720
8May 22, 2021 17:395,76178,956,70318,436,56502,224,128
9May 22, 2021 17:395,77041,421,42017,438,0001,025,0002,527,232
10May 22, 2021 17:395,78066,843,78618,495,76402,228,224
11May 22, 2021 17:395,78345,741,49016,448,0002,056,0002,334,720
12May 22, 2021 17:395,79183,367,09418,532,26902,232,320
13May 22, 2021 17:395,82579,458,53318,640,28102,244,608
14May 22, 2021 17:395,84388,094,70918,698,30502,240,512
15May 22, 2021 17:395,88191,197,64718,819,38002,236,416