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 22, 2024 17:07Matt StuchlikMatt StuchlikScore: 5,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 22, 2024 17:075,51144,004,85817,636,00002,289,664
2Jul 22, 2024 17:075,51437,153,90517,644,00002,273,280
3Jul 22, 2024 17:075,53148,932,21416,658,0001,041,0002,289,664
4Jul 22, 2024 17:075,57538,651,42115,858,0001,982,0002,289,664
5Jul 22, 2024 17:075,58345,190,25816,875,000992,0002,289,664
6Jul 22, 2024 17:075,58546,570,61817,873,00002,273,280
7Jul 22, 2024 17:075,58846,832,52115,895,0001,986,0002,289,664
8Jul 22, 2024 17:075,59041,173,87715,900,0001,987,0002,285,568
9Jul 22, 2024 17:075,59442,738,85315,912,0001,989,0002,273,280
10Jul 22, 2024 17:075,76083,874,61418,433,42202,174,976
11Jul 22, 2024 17:075,77187,673,50018,466,38002,297,856
12Jul 22, 2024 17:075,78684,434,09918,516,14702,297,856