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 14:14Yuriy LyfenkoYuriy LyfenkoError
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 14:1300000Wrong answer: expected: 980121 got: 980120
2May 17, 2021 14:1200000Wrong answer: expected: 980032 got: 980031
3May 17, 2021 14:145,3994,120,860,56917,277,00002,265,088
4May 17, 2021 14:145,4283,629,129,02616,347,0001,021,0002,265,088
5May 17, 2021 14:145,4373,636,139,98716,433,000966,0002,269,184
6May 17, 2021 14:145,4411,486,539,33816,386,0001,024,0002,527,232
7May 17, 2021 14:145,4451,412,232,40416,457,000968,0002,265,088
8May 17, 2021 14:145,4573,758,940,92515,522,0001,940,0002,523,136
9May 17, 2021 14:145,4702,301,353,56515,559,0001,944,0002,260,992
10May 17, 2021 14:145,4723,535,505,86017,509,00002,527,232
11May 17, 2021 14:145,4783,355,195,44716,555,000973,0002,523,136
12May 17, 2021 14:135,5782,918,554,23417,848,39802,281,472
13May 17, 2021 14:145,5873,663,782,39517,876,85802,277,376
14May 17, 2021 14:145,5984,864,899,62617,913,87402,277,376
15May 17, 2021 14:135,603240,350,10117,930,49602,281,472
16May 17, 2021 14:145,6061,353,030,62617,939,97802,273,280
17May 17, 2021 14:145,6113,990,137,08817,956,61202,277,376
18May 17, 2021 14:145,6122,133,543,55717,957,92802,281,472
19May 17, 2021 14:145,6133,211,936,24317,961,43002,281,472
20May 17, 2021 14:145,6171,702,391,62617,974,95602,281,472
21May 17, 2021 14:145,6181,761,427,54617,979,01502,273,280
22May 17, 2021 14:135,626432,432,46618,003,56402,273,280
23May 17, 2021 14:145,6334,969,678,92918,027,19302,281,472
24May 17, 2021 14:145,635717,355,21418,032,61902,285,568
25May 17, 2021 14:145,6424,230,448,02818,054,54302,277,376
26May 17, 2021 14:145,6484,197,535,10318,074,64902,277,376