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 listNov 23, 2024 12:35MatthiasMatthiasScore: 5,100Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 23, 2024 12:365,06137,212,13314,172,0002,024,0002,523,136
2Nov 23, 2024 12:355,07738,876,73714,215,0002,030,0002,273,280
3Nov 23, 2024 12:355,07833,000,97914,218,0002,031,0002,289,664
4Nov 23, 2024 12:355,08233,607,95914,229,0002,032,0002,273,280
5Nov 23, 2024 12:355,08338,634,32314,234,0002,033,0002,281,472
6Nov 23, 2024 12:355,09344,308,26314,262,0002,037,0002,277,376
7Nov 23, 2024 12:355,09739,832,18214,272,0002,038,0002,289,664
8Nov 23, 2024 12:365,10045,844,77314,280,0002,040,0002,289,664
9Nov 23, 2024 12:355,10140,152,76914,284,0002,040,0002,289,664
10Nov 23, 2024 12:355,10236,650,01715,307,0001,020,0002,289,664
11Nov 23, 2024 12:355,10338,992,96215,309,0001,020,0002,289,664
12Nov 23, 2024 12:355,11241,149,28915,335,0001,022,0002,289,664
13Nov 23, 2024 12:355,13145,228,77114,367,0002,052,0002,269,184
14Nov 23, 2024 12:355,14343,750,43714,399,0002,057,0002,289,664
15Nov 23, 2024 12:365,14936,873,98015,447,0001,029,0002,289,664