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 listJul 20, 2024 11:50Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2024 11:4900000Error: expected "978240 ", got "243906 "
2Jul 20, 2024 11:504,73829,800,78013,142,0002,021,0002,289,664
3Jul 20, 2024 11:504,74032,001,78114,157,0001,011,0002,273,280
4Jul 20, 2024 11:504,74633,023,46613,163,0002,025,0002,273,280
5Jul 20, 2024 11:504,75140,101,57213,176,0002,027,0002,289,664
6Jul 20, 2024 11:504,75232,427,20013,180,0002,027,0002,273,280
7Jul 20, 2024 11:504,76238,142,74814,223,0001,015,0002,277,376
8Jul 20, 2024 11:504,77332,231,49813,238,0002,036,0002,265,088
9Jul 20, 2024 11:504,78342,857,59013,265,0002,040,0002,289,664
10Jul 20, 2024 11:504,79931,699,14913,311,0002,047,0002,277,376
11Jul 20, 2024 11:505,01163,805,46116,034,70402,285,568
12Jul 20, 2024 11:505,01272,291,10616,037,32302,297,856
13Jul 20, 2024 11:505,08983,311,42616,285,85902,297,856