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 13, 2021 22:52Yuriy LyfenkoYuriy LyfenkoScore: 5,484Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2021 22:515,44439,368,64315,371,0002,049,0002,523,136
2May 13, 2021 22:515,45343,111,97214,370,0003,079,0002,260,992
3May 13, 2021 22:515,46238,730,38317,478,00002,265,088
4May 13, 2021 22:525,46342,205,78316,453,0001,028,0002,396,160
5May 13, 2021 22:525,46345,380,13317,483,00002,523,136
6May 13, 2021 22:525,46633,685,66015,433,0002,057,0002,392,064
7May 13, 2021 22:515,46842,168,40317,498,00002,392,064
8May 13, 2021 22:525,47333,868,47417,512,00002,523,136
9May 13, 2021 22:515,47334,559,26517,512,00002,260,992
10May 13, 2021 22:525,47435,107,88716,486,0001,030,0002,260,992
11May 13, 2021 22:525,47443,065,36816,488,0001,030,0002,523,136
12May 13, 2021 22:525,47639,364,05116,493,0001,030,0002,392,064
13May 13, 2021 22:525,48439,675,54617,549,00002,523,136
14May 13, 2021 22:515,48638,895,21116,522,0001,032,0002,387,968
15May 13, 2021 22:525,49146,166,03617,570,00002,523,136
16May 13, 2021 22:515,49840,457,62617,595,00002,523,136
17May 13, 2021 22:515,49942,696,56017,596,00002,260,992
18May 13, 2021 22:515,50146,218,45616,567,0001,035,0002,523,136
19May 13, 2021 22:525,63686,134,96618,034,98502,273,280
20May 13, 2021 22:525,65255,133,84118,086,56102,281,472
21May 13, 2021 22:515,69381,213,33318,217,07202,273,280
22May 13, 2021 22:515,69982,355,79318,236,05902,285,568
23May 13, 2021 22:525,70094,072,18818,238,40702,281,472
24May 13, 2021 22:515,71164,009,06218,274,87302,285,568