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 listDec 6, 2023 13:01Viktor IarmolaViktor IarmolaScore: 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
1Dec 6, 2023 13:015,51139,670,19717,634,00002,281,472
2Dec 6, 2023 13:015,52444,508,88917,678,00002,404,352
3Dec 6, 2023 13:015,53344,083,47716,664,0001,041,0002,408,448
4Dec 6, 2023 13:015,54648,669,76017,746,00002,281,472
5Dec 6, 2023 13:015,54642,134,10816,703,0001,043,0002,400,256
6Dec 6, 2023 13:015,58448,579,93815,884,0001,985,0002,281,472
7Dec 6, 2023 13:015,58845,519,69715,895,0001,986,0002,281,472
8Dec 6, 2023 13:015,59346,499,17916,902,000994,0002,404,352
9Dec 6, 2023 13:015,59540,660,29515,915,0001,989,0002,260,992
10Dec 6, 2023 13:015,77275,643,14018,470,89402,297,856
11Dec 6, 2023 13:015,79681,420,18118,547,56002,289,664
12Dec 6, 2023 13:015,80784,673,10118,583,34302,289,664