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 20, 2021 18:33Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:50zielaj10.00RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:51027,630,6619,235,0002,052,0002,355,200expected "976069 ", got "975720 "
2Apr 20, 2026 23:51033,725,3339,071,0002,015,0002,359,296expected "976899 ", got "975892 "
3Apr 20, 2026 23:51030,572,6779,188,0002,041,0002,347,008expected "973976 ", got "974505 "
4May 20, 2021 18:333,64970,968,08611,676,40202,187,264
5May 20, 2021 18:333,65373,872,92611,688,81402,187,264
6May 20, 2021 18:333,65563,041,97411,697,25902,179,072
7May 20, 2021 18:333,66172,144,93811,715,11902,187,264
8May 20, 2021 18:333,66161,592,35011,715,37302,191,360
9May 20, 2021 18:333,67672,402,20611,764,02102,183,168
10May 20, 2021 18:333,67862,278,80611,768,31302,199,552
11May 20, 2021 18:333,70384,038,54211,849,02102,187,264
12May 20, 2021 18:333,70873,933,90111,864,03902,191,360
13May 20, 2021 18:333,71865,273,02111,898,11002,187,264
14May 20, 2021 18:333,72784,590,21811,927,69302,191,360
15May 20, 2021 18:333,72755,578,54711,927,12102,183,168