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 listApr 24, 2025 01:26vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:42Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:42020,612,19212,767,00002,113,536expected "25000000 ", got "24967232 "
2Jul 4, 2026 07:42020,613,32412,762,00002,113,536expected "25000000 ", got "24967232 "
3Jul 4, 2026 07:42022,035,37812,777,00002,113,536expected "25000000 ", got "24967232 "
4Apr 24, 2025 01:274,13538,230,05912,214,0001,017,0002,498,560
5Apr 24, 2025 01:274,13733,790,63213,238,00002,494,464
6Apr 24, 2025 01:274,13829,877,80013,241,00002,494,464
7Apr 24, 2025 01:274,13832,462,15313,240,00002,486,272
8Apr 24, 2025 01:274,14232,092,31511,361,0001,893,0002,490,368
9Apr 24, 2025 01:274,14230,708,13013,255,00002,502,656
10Apr 24, 2025 01:234,14329,276,40513,258,00002,502,656
11Apr 24, 2025 01:274,14734,569,74413,270,00002,273,280
12Apr 24, 2025 01:234,14941,286,82213,278,00002,273,280
13Apr 24, 2025 01:274,15029,154,95913,280,00002,531,328
14Apr 24, 2025 01:274,15134,620,53813,284,00002,494,464
15Apr 24, 2025 01:244,15631,605,41813,300,00002,273,280
16Apr 24, 2025 01:244,15830,745,57113,306,00002,273,280
17Apr 24, 2025 01:234,16127,551,63213,314,00002,531,328
18Apr 24, 2025 01:274,16426,403,86813,324,00002,273,280
19Apr 24, 2025 01:264,16526,257,18813,329,00002,273,280
20Apr 24, 2025 01:274,16526,098,07413,329,00002,273,280
21Apr 24, 2025 01:274,16628,842,10313,332,00002,494,464
22Apr 24, 2025 01:274,16933,456,76413,342,00002,273,280
23Apr 24, 2025 01:274,16925,556,25513,341,00002,531,328
24Apr 24, 2025 01:274,17437,234,15113,356,00002,494,464
25Apr 24, 2025 01:244,17527,523,05913,360,00002,273,280
26Apr 24, 2025 01:274,18127,495,73813,380,00002,273,280
27Apr 24, 2025 01:264,18226,454,67113,383,00002,531,328
28Apr 24, 2025 01:274,18531,887,94213,393,00002,498,560
29Apr 24, 2025 01:264,18932,006,97913,406,00002,273,280
30Apr 24, 2025 01:274,19427,681,36513,420,00002,273,280