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 23:19Yuriy LyfenkoYuriy LyfenkoScore: 5,445Success
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 23:195,40239,020,37015,254,0002,033,0002,260,992
2May 13, 2021 23:205,40938,313,50816,292,0001,018,0002,383,872
3May 13, 2021 23:195,41341,081,70816,303,0001,018,0002,387,968
4May 13, 2021 23:205,41638,142,32217,331,00002,523,136
5May 13, 2021 23:195,42032,876,09616,323,0001,020,0002,523,136
6May 13, 2021 23:205,42640,672,11117,362,00002,392,064
7May 13, 2021 23:205,42840,674,91817,368,00002,396,160
8May 13, 2021 23:205,42840,311,42217,371,00002,523,136
9May 13, 2021 23:205,42937,421,31917,373,00002,396,160
10May 13, 2021 23:195,43334,879,95716,363,0001,022,0002,400,256
11May 13, 2021 23:205,43539,883,27217,392,00002,523,136
12May 13, 2021 23:195,44532,188,63116,399,0001,024,0002,260,992
13May 13, 2021 23:205,44538,340,66815,374,0002,049,0002,269,184
14May 13, 2021 23:195,44533,433,66816,399,0001,024,0002,265,088
15May 13, 2021 23:195,44638,814,76416,401,0001,025,0002,523,136
16May 13, 2021 23:205,44845,151,22617,433,00002,523,136
17May 13, 2021 23:195,45152,283,18417,442,00002,260,992
18May 13, 2021 23:195,45444,216,51917,453,00002,523,136
19May 13, 2021 23:195,63281,589,88118,023,53102,277,376
20May 13, 2021 23:205,64955,716,31218,075,96302,281,472
21May 13, 2021 23:195,65092,430,80618,079,51702,273,280
22May 13, 2021 23:195,66185,037,47118,113,67802,273,280
23May 13, 2021 23:205,67584,940,91118,159,90502,277,376
24May 13, 2021 23:205,692111,414,33318,212,97802,285,568