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 18, 2021 13:12Yuriy LyfenkoYuriy LyfenkoScore: 5,450Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2021 13:125,4071,705,781,68315,381,0001,922,0002,265,088
2May 18, 2021 13:125,4082,199,208,38916,345,000961,0002,269,184
3May 18, 2021 13:105,4232,637,851,02716,332,0001,020,0002,260,992
4May 18, 2021 13:105,4262,107,364,41517,364,00002,260,992
5May 18, 2021 13:105,4292,179,082,32514,477,0002,895,0002,523,136
6May 18, 2021 13:105,431370,316,31116,415,000965,0002,519,040
7May 18, 2021 13:105,4331,137,474,95716,364,0001,022,0002,523,136
8May 18, 2021 13:125,436535,610,61415,348,0002,046,0002,260,992
9May 18, 2021 13:125,4371,746,177,16616,374,0001,023,0002,392,064
10May 18, 2021 13:125,440855,385,10715,473,0001,934,0002,527,232
11May 18, 2021 13:125,446735,518,42817,428,00002,269,184
12May 18, 2021 13:105,4491,483,012,93015,499,0001,937,0002,519,040
13May 18, 2021 13:125,4501,593,681,24616,415,0001,025,0002,265,088
14May 18, 2021 13:105,4582,077,891,10515,524,0001,940,0002,265,088
15May 18, 2021 13:125,4612,049,088,30015,535,0001,941,0002,260,992
16May 18, 2021 13:125,4702,460,296,34515,445,0002,059,0002,265,088
17May 18, 2021 13:105,475481,864,92716,548,000973,0002,383,872
18May 18, 2021 13:105,4781,018,056,49216,557,000973,0002,519,040
19May 18, 2021 13:125,5451,725,759,03717,742,69002,277,376
20May 18, 2021 13:125,5741,499,827,27017,836,39302,281,472
21May 18, 2021 13:105,588415,428,29917,881,68102,277,376
22May 18, 2021 13:125,5911,580,325,59317,891,74102,277,376
23May 18, 2021 13:105,619670,254,23417,981,20202,281,472
24May 18, 2021 13:105,752618,815,17818,406,29802,285,568