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 listFeb 25, 2023 23:11Andranik ChakiryanAndranik ChakiryanScore: 5,639Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2023 23:115,54342,937,66716,693,0001,043,000258,048
2Feb 25, 2023 23:115,58842,121,44916,889,000993,000241,664
3Feb 25, 2023 23:115,61147,604,30115,960,0001,995,0002,338,816
4Feb 25, 2023 23:115,61437,610,26716,968,000998,0002,351,104
5Feb 25, 2023 23:115,61548,765,48516,970,000998,0002,342,912
6Feb 25, 2023 23:115,63347,186,20717,023,0001,001,0002,342,912
7Feb 25, 2023 23:115,63942,275,29016,041,0002,005,0002,342,912
8Feb 25, 2023 23:115,64143,670,39917,050,0001,002,0002,351,104
9Feb 25, 2023 23:115,64947,480,21617,074,0001,004,0002,359,296
10Feb 25, 2023 23:115,68782,762,83018,199,15502,187,264
11Feb 25, 2023 23:115,71971,357,26118,299,27402,187,264
12Feb 25, 2023 23:115,81777,540,68718,614,11402,195,456