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 listNov 10, 2024 18:26Viktor SuprunViktor SuprunScore: 5,942Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2024 18:275,90645,955,33915,915,0002,984,0002,412,544
2Nov 10, 2024 18:295,92047,785,99315,953,0002,991,0002,367,488
3Nov 10, 2024 18:275,92444,789,91715,964,0002,993,0002,408,448
4Nov 10, 2024 18:275,92441,268,80215,965,0002,993,0002,367,488
5Nov 10, 2024 18:265,92646,336,99016,967,0001,996,0002,396,160
6Nov 10, 2024 18:295,92646,653,04115,969,0002,994,0002,367,488
7Nov 10, 2024 18:275,93248,835,78615,986,0002,997,0002,416,640
8Nov 10, 2024 18:275,93347,918,71315,989,0002,998,0002,363,392
9Nov 10, 2024 18:295,94151,779,21716,009,0003,001,0002,367,488
10Nov 10, 2024 18:295,94243,134,37516,012,0003,002,0002,367,488
11Nov 10, 2024 18:295,94249,005,52117,012,0002,001,0002,404,352
12Nov 10, 2024 18:265,94448,730,61216,018,0003,003,0002,355,200
13Nov 10, 2024 18:275,94546,822,65917,021,0002,002,0002,367,488
14Nov 10, 2024 18:295,94851,032,80917,030,0002,003,0002,412,544
15Nov 10, 2024 18:275,95246,391,89416,040,0003,007,0002,420,736
16Nov 10, 2024 18:275,95648,924,87416,049,0003,009,0002,404,352
17Nov 10, 2024 18:265,96548,664,99916,075,0003,014,0002,367,488
18Nov 10, 2024 18:275,96642,282,56516,077,0003,014,0002,416,640
19Nov 10, 2024 18:295,96948,243,74917,090,0002,010,0002,367,488
20Nov 10, 2024 18:295,96949,035,41916,085,0003,016,0002,404,352
21Nov 10, 2024 18:295,97246,375,13516,092,0003,017,0002,412,544