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 listDec 6, 2023 13:08Viktor IarmolaViktor IarmolaScore: 5,502Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2023 13:085,46838,267,13317,497,00002,273,280
2Dec 6, 2023 13:085,47442,866,31917,516,00002,281,472
3Dec 6, 2023 13:085,47541,255,20517,519,00002,400,256
4Dec 6, 2023 13:085,48038,895,45516,504,0001,031,0002,400,256
5Dec 6, 2023 13:085,48537,062,20716,519,0001,032,0002,281,472
6Dec 6, 2023 13:085,48940,113,70016,533,0001,033,0002,400,256
7Dec 6, 2023 13:085,50246,567,50616,572,0001,035,0002,412,544
8Dec 6, 2023 13:085,52447,108,21917,678,00002,281,472
9Dec 6, 2023 13:085,52542,275,72716,641,0001,040,0002,281,472
10Dec 6, 2023 13:085,60985,632,98417,949,33902,281,472
11Dec 6, 2023 13:085,70787,766,94218,262,02902,297,856
12Dec 6, 2023 13:085,74487,092,89918,379,59702,293,760