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 listJun 2, 2021 22:05Yuriy LyfenkoYuriy LyfenkoScore: 5,078Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2021 22:065,004542,916,91115,012,0001,000,0002,273,280
2Jun 2, 2021 22:065,007536,344,48715,022,0001,001,0002,273,280
3Jun 2, 2021 22:065,012540,261,07614,033,0002,004,0002,273,280
4Jun 2, 2021 22:065,013537,624,70514,035,0002,005,0002,273,280
5Jun 2, 2021 22:065,013539,755,24914,037,0002,005,0002,273,280
6Jun 2, 2021 22:065,021539,234,42515,064,0001,004,0002,273,280
7Jun 2, 2021 22:065,029537,826,16814,083,0002,011,0002,273,280
8Jun 2, 2021 22:055,050535,882,49714,140,0002,020,0002,281,472
9Jun 2, 2021 22:065,058539,180,43615,174,0001,011,0002,273,280
10Jun 2, 2021 22:055,060546,943,36214,169,0002,024,0002,273,280
11Jun 2, 2021 22:065,060539,211,49714,169,0002,024,0002,273,280
12Jun 2, 2021 22:055,070542,083,06114,197,0002,028,0002,273,280
13Jun 2, 2021 22:055,078538,685,97316,251,00002,281,472
14Jun 2, 2021 22:055,086535,411,26816,274,00002,273,280
15Jun 2, 2021 22:055,093541,659,41915,280,0001,018,0002,400,256
16Jun 2, 2021 22:055,096540,880,97715,289,0001,019,0002,273,280
17Jun 2, 2021 22:055,099546,675,84615,299,0001,019,0002,273,280
18Jun 2, 2021 22:055,113541,428,96016,361,00002,273,280
19Jun 2, 2021 22:065,143580,251,95016,456,70602,289,664
20Jun 2, 2021 22:065,160572,682,19816,513,05202,285,568
21Jun 2, 2021 22:065,177579,344,97516,565,88302,256,896
22Jun 2, 2021 22:055,212581,877,60816,677,09002,285,568
23Jun 2, 2021 22:055,228574,791,91916,728,20702,289,664
24Jun 2, 2021 22:055,256568,246,90616,817,67502,256,896