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 listJan 21, 2024 15:12Franek KortaFranek KortaScore: 4,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2024 15:124,64832,116,16513,884,000991,0002,531,328
2Jan 21, 2024 15:124,64830,275,28713,884,000991,0002,449,408
3Jan 21, 2024 15:124,64931,023,16814,877,00002,531,328
4Jan 21, 2024 15:124,65130,574,64612,898,0001,984,0002,441,216
5Jan 21, 2024 15:124,65340,613,79214,888,00002,449,408
6Jan 21, 2024 15:124,65331,463,45114,888,00002,449,408
7Jan 21, 2024 15:124,65337,761,27413,896,000992,0002,437,120
8Jan 21, 2024 15:124,65528,659,53913,903,000993,0002,445,312
9Jan 21, 2024 15:124,65533,955,67512,909,0001,986,0002,441,216
10Jan 21, 2024 15:124,65634,356,86212,914,0001,986,0002,445,312
11Jan 21, 2024 15:124,65638,643,91913,906,000993,0002,269,184
12Jan 21, 2024 15:124,66039,384,44013,918,000994,0002,531,328
13Jan 21, 2024 15:124,66129,928,24413,849,0001,065,0002,531,328
14Jan 21, 2024 15:124,66134,173,87213,920,000994,0002,531,328
15Jan 21, 2024 15:124,66529,171,71013,932,000995,0002,441,216
16Jan 21, 2024 15:124,66831,028,29613,942,000995,0002,441,216
17Jan 21, 2024 15:124,66927,342,65313,944,000996,0002,531,328
18Jan 21, 2024 15:124,67030,894,18011,956,0002,989,0002,441,216
19Jan 21, 2024 15:124,90076,531,09815,678,56702,199,552
20Jan 21, 2024 15:124,90392,036,18715,690,87002,191,360
21Jan 21, 2024 15:124,91979,766,50915,741,04702,195,456
22Jan 21, 2024 15:124,92077,359,13615,745,42902,191,360
23Jan 21, 2024 15:124,93087,728,39115,776,09502,195,456
24Jan 21, 2024 15:124,93984,252,49115,803,59302,187,264