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 listApr 4, 2024 23:28Drew GarciaDrew GarciaScore: 5,584Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 23:185,52543,631,93917,679,00002,281,472
2Apr 4, 2024 23:185,53439,034,99316,669,0001,041,0002,535,424
3Apr 4, 2024 23:185,53543,341,72817,712,00002,281,472
4Apr 4, 2024 23:285,53746,839,03515,634,0002,084,0002,269,184
5Apr 4, 2024 23:285,54348,166,22716,696,0001,043,0002,277,376
6Apr 4, 2024 23:185,55342,316,31616,725,0001,045,0002,281,472
7Apr 4, 2024 23:285,57043,350,70813,863,0003,961,0002,281,472
8Apr 4, 2024 23:185,57146,603,53416,838,000990,0002,281,472
9Apr 4, 2024 23:185,57642,719,01617,843,00002,281,472
10Apr 4, 2024 23:285,57848,812,40514,875,0002,975,0002,273,280
11Apr 4, 2024 23:185,58143,971,29614,884,0002,976,0002,281,472
12Apr 4, 2024 23:185,58448,569,02015,884,0001,985,0002,289,664
13Apr 4, 2024 23:285,58446,480,24416,876,000992,0002,281,472
14Apr 4, 2024 23:185,58840,010,88816,888,000993,0002,281,472
15Apr 4, 2024 23:285,58844,752,43215,894,0001,986,0002,281,472
16Apr 4, 2024 23:285,71439,035,37417,270,0001,015,0002,281,472
17Apr 4, 2024 23:285,75039,499,29116,356,0002,044,0002,273,280
18Apr 4, 2024 23:185,76883,841,74318,457,84602,179,072
19Apr 4, 2024 23:185,768100,610,32518,458,73502,179,072
20Apr 4, 2024 23:285,78274,040,69718,501,14902,174,976
21Apr 4, 2024 23:185,79996,730,61118,557,47702,179,072
22Apr 4, 2024 23:285,81681,042,68918,609,67402,174,976
23Apr 4, 2024 23:285,81742,274,97817,581,0001,034,0002,281,472
24Apr 4, 2024 23:285,82096,138,55818,623,43702,174,976