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 18:49Joad NacerJoad NacerScore: 4,882Success
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 18:494,80833,674,94815,387,00002,519,040
2Apr 17, 2024 18:494,83938,224,63214,453,0001,032,0002,289,664
3Apr 17, 2024 18:494,84533,568,99214,470,0001,033,0002,527,232
4Apr 17, 2024 18:494,85037,312,48314,485,0001,034,0002,289,664
5Apr 17, 2024 18:494,85137,950,72814,488,0001,034,0002,277,376
6Apr 17, 2024 18:494,85629,265,81214,503,0001,035,0002,289,664
7Apr 17, 2024 18:494,85837,309,53414,509,0001,036,0002,265,088
8Apr 17, 2024 18:494,86037,834,66315,551,00002,523,136
9Apr 17, 2024 18:494,86334,159,80914,524,0001,037,0002,289,664
10Apr 17, 2024 18:494,86732,766,52214,535,0001,038,0002,289,664
11Apr 17, 2024 18:494,86736,462,77714,537,0001,038,0002,289,664
12Apr 17, 2024 18:494,87835,491,51514,568,0001,040,0002,265,088
13Apr 17, 2024 18:494,88240,386,30314,581,0001,041,0002,289,664
14Apr 17, 2024 18:494,88933,347,11214,603,0001,043,0002,269,184
15Apr 17, 2024 18:494,89543,176,06114,620,0001,044,0002,523,136
16Apr 17, 2024 18:494,89845,620,30915,675,00002,289,664
17Apr 17, 2024 18:494,89942,156,31414,632,0001,045,0002,273,280
18Apr 17, 2024 18:494,91341,695,58514,738,000982,0002,273,280
19Apr 17, 2024 18:495,10083,159,14116,320,66002,306,048
20Apr 17, 2024 18:495,10985,699,62316,347,58802,301,952
21Apr 17, 2024 18:495,11260,724,94116,359,65202,297,856
22Apr 17, 2024 18:495,118101,930,42416,378,92902,174,976
23Apr 17, 2024 18:495,12586,048,10416,398,82902,174,976
24Apr 17, 2024 18:495,130100,597,43716,416,75302,301,952