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 18, 2024 09:22Joad NacerJoad NacerScore: 5,483Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 09:225,43937,719,22116,383,0001,023,0002,269,184
2Apr 18, 2024 09:225,44240,283,08517,414,00002,265,088
3Apr 18, 2024 09:225,45238,710,92616,421,0001,026,0002,523,136
4Apr 18, 2024 09:225,45334,972,99816,425,0001,026,0002,289,664
5Apr 18, 2024 09:225,47543,154,15816,490,0001,030,0002,289,664
6Apr 18, 2024 09:225,47944,522,21216,503,0001,031,0002,289,664
7Apr 18, 2024 09:225,48338,654,79516,514,0001,032,0002,289,664
8Apr 18, 2024 09:225,50934,487,81317,629,00002,289,664
9Apr 18, 2024 09:225,51142,704,25816,597,0001,037,0002,289,664
10Apr 18, 2024 09:225,71168,904,25918,275,42402,174,976
11Apr 18, 2024 09:225,73782,919,20218,359,98202,301,952
12Apr 18, 2024 09:225,75481,579,62918,411,71002,301,952