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 02:52Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 20, 2026 23:47zielaj130.92RecheckSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:48026,743,3497,910,0001,977,0002,359,296expected "975321 ", got "974635 "
2Apr 20, 2026 23:48029,792,6757,924,0001,981,0002,363,392expected "973737 ", got "974581 "
3Apr 20, 2026 23:48027,537,2237,946,0001,986,0002,519,040expected "978414 ", got "978001 "
4May 20, 2021 02:523,09983,498,6989,916,84402,256,896
5May 20, 2021 02:523,11658,807,4619,970,44702,256,896
6May 20, 2021 02:523,14758,763,09510,070,80202,256,896