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 listSep 7, 2022 04:12Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 7, 2022 04:1100000Error: expected "977627 ", got "977467 "
2Sep 7, 2022 04:114,937542,842,42615,797,00002,260,992
3Sep 7, 2022 04:114,943539,475,48614,828,000988,0002,265,088
4Sep 7, 2022 04:124,956539,758,98514,867,000991,0002,260,992
5Sep 7, 2022 04:114,960545,313,22513,888,0001,984,0002,523,136
6Sep 7, 2022 04:124,962543,215,13813,893,0001,984,0002,265,088
7Sep 7, 2022 04:124,962543,782,86314,886,000992,0002,260,992
8Sep 7, 2022 04:114,962541,639,53513,894,0001,984,0002,265,088
9Sep 7, 2022 04:114,969544,420,77013,915,0001,987,0002,260,992
10Sep 7, 2022 04:124,972544,026,78814,916,000994,0002,527,232
11Sep 7, 2022 04:114,974543,518,36014,922,000994,0002,527,232
12Sep 7, 2022 04:114,985547,373,37414,955,000997,0002,383,872
13Sep 7, 2022 04:114,986541,920,11014,959,000997,0002,527,232
14Sep 7, 2022 04:124,993545,552,02813,979,0001,997,0002,523,136
15Sep 7, 2022 04:124,994540,863,86514,983,000998,0002,265,088
16Sep 7, 2022 04:124,998542,008,05713,994,0001,999,0002,523,136
17Sep 7, 2022 04:115,002542,021,43915,007,0001,000,0002,265,088
18Sep 7, 2022 04:125,013545,329,88114,035,0002,005,0002,523,136
19Sep 7, 2022 04:125,032545,116,36714,089,0002,012,0002,523,136
20Sep 7, 2022 04:125,136578,800,73716,436,45402,285,568
21Sep 7, 2022 04:115,137584,151,63516,437,83402,281,472
22Sep 7, 2022 04:115,146585,544,41216,468,58402,240,512
23Sep 7, 2022 04:125,152576,903,04116,485,13102,244,608
24Sep 7, 2022 04:115,166577,802,78016,531,22202,244,608
25Sep 7, 2022 04:125,179586,923,20016,572,96602,240,512