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 21, 2021 17:10Dmitry DolgopolovDmitry DolgopolovScore: 5,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2021 17:105,21533,853,90916,689,00002,392,064
2May 21, 2021 17:105,21741,376,51215,652,0001,043,0002,265,088
3May 21, 2021 17:105,22442,907,46716,717,00002,265,088
4May 21, 2021 17:105,22738,166,50915,680,0001,045,0002,392,064
5May 21, 2021 17:105,26041,893,72016,831,00002,265,088
6May 21, 2021 17:105,26944,119,04915,870,000991,0002,265,088
7May 21, 2021 17:105,27139,841,84815,875,000992,0002,392,064
8May 21, 2021 17:105,27332,223,77416,872,00002,265,088
9May 21, 2021 17:105,27650,597,69114,897,0001,986,0002,265,088
10May 21, 2021 17:105,43795,165,05917,397,83302,281,472
11May 21, 2021 17:105,44690,592,04417,426,20502,289,664
12May 21, 2021 17:105,47070,193,13317,504,88002,281,472
13May 21, 2021 17:105,48657,356,82317,554,95302,273,280
14May 21, 2021 17:105,49264,534,50317,575,57702,277,376
15May 21, 2021 17:105,49671,172,01817,587,33002,277,376