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 17, 2024 03:15Joad NacerJoad NacerScore: 5,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 03:155,30441,481,47514,976,0001,996,0002,265,088
2Apr 17, 2024 03:155,30732,050,41314,985,0001,998,0002,281,472
3Apr 17, 2024 03:155,30741,329,13714,984,0001,997,0002,273,280
4Apr 17, 2024 03:155,30740,675,64014,985,0001,998,0002,269,184
5Apr 17, 2024 03:155,31148,605,38714,997,0001,999,0002,273,280
6Apr 17, 2024 03:155,31839,983,72716,016,0001,001,0002,269,184
7Apr 17, 2024 03:155,31942,623,51315,020,0002,002,0002,277,376
8Apr 17, 2024 03:155,32040,138,02116,024,0001,001,0002,289,664
9Apr 17, 2024 03:155,32746,713,96115,040,0002,005,0002,289,664
10Apr 17, 2024 03:155,32939,908,38815,047,0002,006,0002,289,664
11Apr 17, 2024 03:155,33541,389,62516,067,0001,004,0002,379,776
12Apr 17, 2024 03:155,33836,748,94215,072,0002,009,0002,273,280
13Apr 17, 2024 03:155,33936,765,55815,075,0002,010,0002,355,200
14Apr 17, 2024 03:155,34544,634,90015,093,0002,012,0002,289,664
15Apr 17, 2024 03:155,34847,227,04015,101,0002,013,0002,523,136
16Apr 17, 2024 03:155,34840,400,96515,100,0002,013,0002,265,088
17Apr 17, 2024 03:155,35234,295,31016,119,0001,007,0002,273,280
18Apr 17, 2024 03:155,36840,358,72916,168,0001,010,0002,281,472
19Apr 17, 2024 03:155,51561,958,49417,646,52902,174,976
20Apr 17, 2024 03:155,53085,379,59917,697,45702,297,856
21Apr 17, 2024 03:155,54172,951,79117,730,14802,301,952
22Apr 17, 2024 03:155,54479,289,70117,742,11802,297,856
23Apr 17, 2024 03:155,56189,957,09417,793,85602,306,048
24Apr 17, 2024 03:155,597103,057,98417,910,07602,301,952