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:11Franek KortaFranek KortaScore: 4,659Success
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:114,64732,320,07112,889,0001,982,0002,269,184
2Jan 21, 2024 15:114,64827,995,54414,872,00002,449,408
3Jan 21, 2024 15:114,65040,736,10913,889,000992,0002,531,328
4Jan 21, 2024 15:114,65046,395,08712,896,0001,984,0002,531,328
5Jan 21, 2024 15:114,65130,106,26813,890,000992,0002,449,408
6Jan 21, 2024 15:114,65241,134,62914,887,00002,531,328
7Jan 21, 2024 15:114,65238,789,11513,893,000992,0002,449,408
8Jan 21, 2024 15:114,65331,684,10712,903,0001,985,0002,445,312
9Jan 21, 2024 15:114,65442,277,78213,901,000992,0002,269,184
10Jan 21, 2024 15:114,65731,708,99512,916,0001,987,0002,269,184
11Jan 21, 2024 15:114,65830,968,57414,907,00002,269,184
12Jan 21, 2024 15:114,65932,315,96312,921,0001,987,0002,265,088
13Jan 21, 2024 15:114,65946,315,48212,921,0001,987,0002,265,088
14Jan 21, 2024 15:114,66141,246,05413,920,000994,0002,437,120
15Jan 21, 2024 15:114,66234,430,78213,852,0001,065,0002,441,216
16Jan 21, 2024 15:114,66730,465,25112,944,0001,991,0002,445,312
17Jan 21, 2024 15:114,66836,393,20612,947,0001,991,0002,531,328
18Jan 21, 2024 15:114,66848,044,53513,942,000995,0002,445,312
19Jan 21, 2024 15:114,91359,257,63715,720,52402,187,264
20Jan 21, 2024 15:114,92599,741,68515,759,80602,195,456
21Jan 21, 2024 15:114,92797,116,54115,767,21602,183,168
22Jan 21, 2024 15:114,92985,245,89915,772,88402,191,360
23Jan 21, 2024 15:114,94088,277,11515,808,10602,191,360
24Jan 21, 2024 15:114,94693,612,14115,826,32202,179,072