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 18:39Yuriy LyfenkoYuriy LyfenkoScore: 5,116Success
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 18:394,996542,738,70014,988,000999,0002,260,992
2Jun 2, 2021 18:395,000550,715,05915,001,0001,000,0002,265,088
3Jun 2, 2021 18:395,003549,406,56015,011,0001,000,0002,260,992
4Jun 2, 2021 18:395,013547,180,05714,035,0002,005,0002,265,088
5Jun 2, 2021 18:395,029544,580,15114,082,0002,011,0002,260,992
6Jun 2, 2021 18:395,031542,010,39615,094,0001,006,0002,265,088
7Jun 2, 2021 18:395,044542,137,99114,123,0002,017,0002,523,136
8Jun 2, 2021 18:395,058548,287,74216,186,00002,383,872
9Jun 2, 2021 18:395,063542,478,64515,190,0001,012,0002,265,088
10Jun 2, 2021 18:395,0842,046,263,39116,270,00002,269,184
11Jun 2, 2021 18:395,0912,041,344,91715,333,000958,0002,523,136
12Jun 2, 2021 18:395,0952,041,609,84915,286,0001,019,0002,260,992
13Jun 2, 2021 18:395,1162,042,254,03714,446,0001,926,0002,523,136
14Jun 2, 2021 18:395,1412,044,609,11914,517,0001,935,0002,523,136
15Jun 2, 2021 18:395,1422,044,683,95615,487,000967,0002,265,088
16Jun 2, 2021 18:395,1432,045,202,25915,490,000968,0002,527,232
17Jun 2, 2021 18:395,1442,044,601,39214,524,0001,936,0002,523,136
18Jun 2, 2021 18:395,1702,042,570,53314,597,0001,946,0002,260,992
19Jun 2, 2021 18:395,191578,402,78216,611,98002,273,280
20Jun 2, 2021 18:395,212583,054,63816,679,17002,244,608
21Jun 2, 2021 18:395,254582,420,10416,813,01702,281,472
22Jun 2, 2021 18:395,2862,083,881,21516,915,83202,277,376
23Jun 2, 2021 18:395,2892,072,287,99016,924,75602,269,184
24Jun 2, 2021 18:395,2972,089,835,47616,951,13802,265,088