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 listOct 6, 2023 07:06Pavel ZagrebinPavel ZagrebinScore: 5,490Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 07:065,44938,568,47516,413,0001,025,0002,269,184
2Oct 6, 2023 07:065,46136,511,72017,474,00002,273,280
3Oct 6, 2023 07:065,46340,848,56916,455,0001,028,0002,289,664
4Oct 6, 2023 07:065,47141,337,09316,477,0001,029,0002,289,664
5Oct 6, 2023 07:065,47239,901,31916,480,0001,030,0002,281,472
6Oct 6, 2023 07:065,48240,770,55616,511,0001,031,0002,289,664
7Oct 6, 2023 07:065,49040,230,66416,534,0001,033,0002,277,376
8Oct 6, 2023 07:065,49339,534,16716,545,0001,034,0002,527,232
9Oct 6, 2023 07:065,53345,636,57116,666,0001,041,0002,269,184
10Oct 6, 2023 07:065,63784,779,44118,039,94702,252,800
11Oct 6, 2023 07:065,65360,679,09818,090,60502,174,976
12Oct 6, 2023 07:065,70090,370,79618,238,53002,297,856