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 listMay 22, 2021 16:14Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:46zielaj10.00RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:46026,590,9828,549,0001,068,0002,359,296expected "977630 ", got "977397 "
2Apr 20, 2026 23:46027,409,8038,481,0001,060,0002,367,488expected "977030 ", got "978709 "
3Apr 20, 2026 23:46026,560,0228,594,0001,074,0002,371,584expected "977716 ", got "977031 "
4May 22, 2021 16:142,99259,496,6679,573,65802,256,896
5May 22, 2021 16:162,99968,856,8809,596,49602,256,896
6May 22, 2021 16:143,01056,854,9249,631,19102,256,896
7May 22, 2021 16:143,01456,916,2629,644,75702,256,896
8May 22, 2021 16:163,02567,299,1299,679,92302,260,992
9May 22, 2021 16:143,02752,983,7419,687,45802,256,896
10May 22, 2021 16:143,02854,124,4679,690,33702,256,896
11May 22, 2021 16:143,02854,850,7499,690,36102,256,896
12May 22, 2021 16:163,05560,796,8899,774,97202,240,512