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 6, 2025 05:44Chandrasekaran AkashChandrasekaran AkashScore: 5,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 6, 2025 05:445,27240,563,39516,869,00002,527,232
2Apr 6, 2025 05:445,27346,025,96614,889,0001,985,0002,523,136
3Apr 6, 2025 05:455,27346,188,60115,881,000992,0002,433,024
4Apr 6, 2025 05:455,27344,111,04316,873,00002,445,312
5Apr 6, 2025 05:445,27541,194,26615,888,000993,0002,445,312
6Apr 6, 2025 05:455,27535,244,11814,894,0001,985,0002,265,088
7Apr 6, 2025 05:445,27643,210,20114,897,0001,986,0002,527,232
8Apr 6, 2025 05:455,27646,562,35815,889,000993,0002,527,232
9Apr 6, 2025 05:455,27938,569,97515,899,000993,0002,523,136
10Apr 6, 2025 05:455,28131,240,98816,898,00002,265,088
11Apr 6, 2025 05:445,28736,350,13715,923,000995,0002,527,232
12Apr 6, 2025 05:445,28937,840,09815,929,000995,0002,441,216
13Apr 6, 2025 05:445,29542,950,77315,947,000996,0002,527,232
14Apr 6, 2025 05:445,29744,661,85115,952,000997,0002,527,232
15Apr 6, 2025 05:455,30048,249,96214,966,0001,995,0002,265,088
16Apr 6, 2025 05:455,30340,907,05313,975,0002,994,0002,527,232
17Apr 6, 2025 05:455,31244,272,40414,998,0001,999,0002,449,408
18Apr 6, 2025 05:445,32541,945,65815,036,0002,004,0002,441,216