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 23:59Yuriy LyfenkoYuriy LyfenkoScore: 5,453Success
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 23:595,4193,190,861,53816,322,0001,020,0002,269,184
2May 17, 2021 23:595,4202,399,058,35417,345,00002,260,992
3May 17, 2021 23:595,4232,631,349,87515,311,0002,041,0002,523,136
4May 17, 2021 23:595,4242,301,410,48616,393,000964,0002,260,992
5May 17, 2021 23:595,4313,469,883,08817,380,00002,523,136
6May 17, 2021 23:595,4402,557,362,00516,385,0001,024,0002,519,040
7May 17, 2021 23:595,4412,907,255,76815,477,0001,934,0002,523,136
8May 17, 2021 23:595,4411,368,407,49715,478,0001,934,0002,527,232
9May 17, 2021 23:595,4433,010,767,59415,482,0001,935,0002,523,136
10May 17, 2021 23:595,4432,109,847,34616,452,000967,0002,519,040
11May 17, 2021 23:595,4441,356,524,16714,518,0002,903,0002,523,136
12May 17, 2021 23:595,4481,455,453,79916,410,0001,025,0002,519,040
13May 17, 2021 23:595,4532,486,439,16514,543,0002,908,0002,510,848
14May 17, 2021 23:595,455938,539,03117,457,00002,265,088
15May 17, 2021 23:595,4572,567,556,74615,522,0001,940,0002,523,136
16May 17, 2021 23:595,4682,096,192,60817,497,00002,519,040
17May 17, 2021 23:595,472980,395,43116,539,000972,0002,519,040
18May 17, 2021 23:595,5933,108,355,63617,897,90702,281,472
19May 17, 2021 23:595,5961,214,857,17417,906,73202,273,280
20May 17, 2021 23:595,5981,950,573,46017,912,55902,281,472
21May 17, 2021 23:595,6013,418,864,05516,868,0001,054,0002,519,040
22May 17, 2021 23:595,6031,026,413,57517,929,18402,281,472
23May 17, 2021 23:595,620792,698,72017,982,54902,281,472
24May 17, 2021 23:595,6262,790,645,34418,004,63102,281,472