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 12:44Matt StuchlikMatt StuchlikScore: 4,681Success
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 12:444,65330,903,16512,905,0001,985,0002,265,088
2Jul 20, 2024 12:444,65434,373,35412,907,0001,985,0002,281,472
3Jul 20, 2024 12:444,65738,974,16114,901,00002,289,664
4Jul 20, 2024 12:444,66232,216,49512,929,0001,989,0002,273,280
5Jul 20, 2024 12:444,66732,633,94912,944,0001,991,0002,289,664
6Jul 20, 2024 12:444,68033,779,79013,978,000998,0002,289,664
7Jul 20, 2024 12:444,68130,395,58112,983,0001,997,0002,277,376
8Jul 20, 2024 12:444,69631,490,00413,024,0002,003,0002,367,488
9Jul 20, 2024 12:444,71234,609,85714,074,0001,005,0002,289,664
10Jul 20, 2024 12:444,95596,757,73315,854,75802,289,664
11Jul 20, 2024 12:444,96188,421,76215,876,72802,289,664
12Jul 20, 2024 12:444,97788,005,44315,925,45002,285,568