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 listSep 2, 2022 19:11Franek KortaFranek KortaScore: 4,966Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2022 19:114,89435,436,64514,616,0001,044,0002,519,040
2Sep 2, 2022 19:114,90534,485,93315,696,00002,519,040
3Sep 2, 2022 19:114,91131,289,05912,572,0003,143,0002,367,488
4Sep 2, 2022 19:114,91433,893,33514,678,0001,048,0002,519,040
5Sep 2, 2022 19:114,91849,643,33315,737,00002,371,584
6Sep 2, 2022 19:114,95840,154,26714,873,000991,0002,519,040
7Sep 2, 2022 19:114,96631,704,76514,898,000993,0002,519,040
8Sep 2, 2022 19:114,96635,510,14413,906,0001,986,0002,375,680
9Sep 2, 2022 19:114,96942,946,19713,914,0001,987,0002,523,136
10Sep 2, 2022 19:115,032103,502,00116,101,52802,289,664
11Sep 2, 2022 19:115,07087,916,02016,225,53802,269,184
12Sep 2, 2022 19:115,07483,096,91816,236,66002,281,472