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 26, 2024 20:53Andrey LikhachevAndrey LikhachevScore: 4,711Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2024 20:534,67940,617,00313,975,000998,0002,383,872
2Jun 26, 2024 20:534,68545,241,20113,993,000999,0002,383,872
3Jun 26, 2024 20:534,68542,056,19012,994,0001,999,0002,367,488
4Jun 26, 2024 20:534,68528,691,72513,992,000999,0002,379,776
5Jun 26, 2024 20:534,68635,486,72913,997,000999,0002,289,664
6Jun 26, 2024 20:534,68945,734,39613,005,0002,000,0002,363,392
7Jun 26, 2024 20:534,69033,569,55214,009,0001,000,0002,367,488
8Jun 26, 2024 20:534,69631,911,90514,025,0001,001,0002,367,488
9Jun 26, 2024 20:534,69737,335,36413,027,0002,004,0002,469,888
10Jun 26, 2024 20:534,69837,962,77014,030,0001,002,0002,375,680
11Jun 26, 2024 20:534,69931,743,82514,036,0001,002,0002,285,568
12Jun 26, 2024 20:534,69939,362,66214,036,0001,002,0002,363,392
13Jun 26, 2024 20:534,71146,844,29613,066,0002,010,0002,375,680
14Jun 26, 2024 20:534,71431,752,17414,081,0001,005,0002,371,584
15Jun 26, 2024 20:534,71434,481,02214,079,0001,005,0002,289,664
16Jun 26, 2024 20:534,71547,996,10114,083,0001,005,0002,379,776
17Jun 26, 2024 20:534,71642,770,02315,092,00002,289,664
18Jun 26, 2024 20:534,71844,003,55113,085,0002,013,0002,375,680
19Jun 26, 2024 20:534,937108,423,29715,796,94602,248,704
20Jun 26, 2024 20:534,94380,421,60115,816,92402,248,704
21Jun 26, 2024 20:534,94798,440,49815,830,80602,240,512
22Jun 26, 2024 20:534,96458,749,85315,885,81802,371,584
23Jun 26, 2024 20:534,96856,602,16315,897,93802,244,608
24Jun 26, 2024 20:534,97956,988,89415,931,90202,248,704