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 14, 2021 21:52Yuriy LyfenkoYuriy LyfenkoScore: 5,664Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2021 21:535,43938,600,53616,383,0001,023,0002,387,968
2May 14, 2021 21:535,44237,807,82816,391,0001,024,0002,510,848
3May 14, 2021 21:535,45337,597,60116,423,0001,026,0002,379,776
4May 14, 2021 21:535,45439,984,19916,426,0001,026,0002,387,968
5May 14, 2021 21:535,45739,816,97817,463,00002,519,040
6May 14, 2021 21:535,46333,044,86416,452,0001,028,0002,519,040
7May 14, 2021 21:535,46339,741,20317,483,00002,519,040
8May 14, 2021 21:535,47141,994,81715,449,0002,059,0002,523,136
9May 14, 2021 21:535,49544,526,11617,584,00002,387,968
10May 14, 2021 21:525,65249,403,86616,078,0002,009,0002,519,040
11May 14, 2021 21:525,66244,374,01216,104,0002,013,0002,519,040
12May 14, 2021 21:525,66346,385,15217,115,0001,006,0002,387,968
13May 14, 2021 21:525,66447,808,49117,119,0001,007,0002,519,040
14May 14, 2021 21:525,66545,963,87417,121,0001,007,0002,510,848
15May 14, 2021 21:525,66944,574,05017,133,0001,007,0002,519,040
16May 14, 2021 21:525,68045,041,59016,157,0002,019,0002,383,872
17May 14, 2021 21:525,69547,916,36016,199,0002,024,0002,392,064
18May 14, 2021 21:535,73367,226,55118,344,03902,281,472
19May 14, 2021 21:525,74544,443,56117,363,0001,021,0002,519,040
20May 14, 2021 21:535,76078,136,47018,432,68102,285,568
21May 14, 2021 21:535,76674,262,58418,450,71302,281,472
22May 14, 2021 21:525,91891,473,32618,938,50102,277,376
23May 14, 2021 21:525,94178,747,15719,011,44302,289,664
24May 14, 2021 21:525,95981,834,37619,069,83302,285,568