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 listApr 17, 2024 02:39Joad NacerJoad NacerScore: 5,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 02:395,45940,484,61516,442,0001,027,0002,269,184
2Apr 17, 2024 02:395,46941,786,48816,472,0001,029,0002,277,376
3Apr 17, 2024 02:395,47032,846,40916,475,0001,029,0002,289,664
4Apr 17, 2024 02:395,47431,723,83416,488,0001,030,0002,289,664
5Apr 17, 2024 02:395,47634,983,97316,492,0001,030,0002,265,088
6Apr 17, 2024 02:395,47936,283,98016,502,0001,031,0002,289,664
7Apr 17, 2024 02:395,48341,034,74617,545,00002,273,280
8Apr 17, 2024 02:395,48536,419,60316,519,0001,032,0002,289,664
9Apr 17, 2024 02:395,48542,671,08216,519,0001,032,0002,289,664
10Apr 17, 2024 02:395,48841,747,68616,529,0001,033,0002,289,664
11Apr 17, 2024 02:395,48841,604,46816,530,0001,033,0002,289,664
12Apr 17, 2024 02:395,48940,328,16616,531,0001,033,0002,289,664
13Apr 17, 2024 02:395,49238,590,75117,575,00002,273,280
14Apr 17, 2024 02:395,49740,852,85116,556,0001,034,0002,277,376
15Apr 17, 2024 02:395,49744,683,23416,557,0001,034,0002,289,664
16Apr 17, 2024 02:395,51244,619,90516,601,0001,037,0002,289,664
17Apr 17, 2024 02:395,51349,643,37516,604,0001,037,0002,375,680
18Apr 17, 2024 02:395,51750,097,91716,617,0001,038,0002,281,472
19Apr 17, 2024 02:395,73283,138,18218,343,82002,297,856
20Apr 17, 2024 02:395,74181,007,12018,370,30902,183,168
21Apr 17, 2024 02:395,74784,798,00918,388,84302,293,760
22Apr 17, 2024 02:395,75286,536,56218,404,92102,301,952
23Apr 17, 2024 02:395,75883,965,15018,425,19202,293,760
24Apr 17, 2024 02:395,761107,139,33718,434,01902,297,856