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 17, 2021 17:50Yuriy LyfenkoYuriy LyfenkoScore: 5,378Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 17:505,3581,009,105,96913,336,0003,810,0002,260,992
2May 17, 2021 17:515,358822,005,53417,147,00002,265,088
3May 17, 2021 17:515,359932,043,16316,141,0001,008,0002,523,136
4May 17, 2021 17:515,3601,484,278,99517,153,00002,523,136
5May 17, 2021 17:505,361224,455,60315,250,0001,906,0002,519,040
6May 17, 2021 17:515,361743,790,25415,248,0001,906,0002,269,184
7May 17, 2021 17:505,367397,808,68016,219,000954,0002,523,136
8May 17, 2021 17:515,367760,082,74716,219,000954,0002,269,184
9May 17, 2021 17:515,371282,245,72716,234,000954,0002,396,160
10May 17, 2021 17:505,373139,106,76014,158,0003,034,0002,265,088
11May 17, 2021 17:505,373282,873,21415,282,0001,910,0002,383,872
12May 17, 2021 17:515,3761,992,092,67313,155,0004,047,0002,269,184
13May 17, 2021 17:505,378405,820,54717,209,00002,523,136
14May 17, 2021 17:515,3811,517,727,65315,305,0001,913,0002,269,184
15May 17, 2021 17:505,391228,436,51516,292,000958,0002,265,088
16May 17, 2021 17:515,393787,386,14715,342,0001,917,0002,265,088
17May 17, 2021 17:505,3931,498,820,23916,242,0001,015,0002,523,136
18May 17, 2021 17:505,421963,775,17315,420,0001,927,0002,523,136
19May 17, 2021 17:515,563755,348,58517,800,85102,273,280
20May 17, 2021 17:515,5671,529,838,15217,815,68002,277,376
21May 17, 2021 17:515,5901,713,297,15717,887,78002,277,376
22May 17, 2021 17:505,5971,999,721,57417,911,02702,281,472
23May 17, 2021 17:505,6072,084,372,69517,941,28502,281,472
24May 17, 2021 17:505,6221,525,421,16317,990,78102,277,376