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 listJan 3, 2023 22:15Jack FrigaardJack FrigaardScore: 5,201Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 22:155,15642,204,89815,468,0001,031,0002,289,664
2Jan 3, 2023 22:155,16434,602,00815,492,0001,032,0002,269,184
3Jan 3, 2023 22:155,16545,769,37815,496,0001,033,0002,289,664
4Jan 3, 2023 22:155,19442,503,41515,583,0001,038,0002,289,664
5Jan 3, 2023 22:155,19652,931,37315,587,0001,039,0002,273,280
6Jan 3, 2023 22:155,20145,164,86715,602,0001,040,0002,289,664
7Jan 3, 2023 22:155,20146,872,58315,602,0001,040,0002,289,664
8Jan 3, 2023 22:155,22948,354,25516,734,00002,289,664
9Jan 3, 2023 22:155,27333,193,45914,890,0001,985,0002,289,664
10Jan 3, 2023 22:155,39386,386,71217,257,81202,179,072
11Jan 3, 2023 22:155,402108,477,63017,285,53502,174,976
12Jan 3, 2023 22:155,44286,442,87017,413,82802,293,760