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 listApr 20, 2024 17:14Joad NacerJoad NacerScore: 5,003Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 17:144,95636,184,95313,876,0001,982,0002,289,664
2Apr 20, 2024 17:134,96333,271,89613,895,0001,985,0002,408,448
3Apr 20, 2024 17:134,96742,226,19714,901,000993,0002,289,664
4Apr 20, 2024 17:144,96736,332,69414,900,000993,0002,289,664
5Apr 20, 2024 17:134,96934,710,39114,907,000993,0002,523,136
6Apr 20, 2024 17:144,97338,745,64514,918,000994,0002,289,664
7Apr 20, 2024 17:134,97831,353,73314,933,000995,0002,285,568
8Apr 20, 2024 17:134,97832,284,12813,940,0001,991,0002,289,664
9Apr 20, 2024 17:144,97938,534,66114,939,000995,0002,289,664
10Apr 20, 2024 17:144,98138,239,25513,946,0001,992,0002,383,872
11Apr 20, 2024 17:144,99238,816,30713,978,0001,996,0002,379,776
12Apr 20, 2024 17:134,99638,319,82313,990,0001,998,0002,285,568
13Apr 20, 2024 17:145,00337,631,90315,009,0001,000,0002,289,664
14Apr 20, 2024 17:135,00332,262,30914,008,0002,001,0002,383,872
15Apr 20, 2024 17:145,03434,788,61414,095,0002,013,0002,265,088
16Apr 20, 2024 17:135,03731,788,43714,104,0002,014,0002,359,296
17Apr 20, 2024 17:145,03835,169,27414,106,0002,015,0002,289,664
18Apr 20, 2024 17:135,04194,274,77316,130,27902,252,800
19Apr 20, 2024 17:135,05333,012,52115,159,0001,010,0002,273,280
20Apr 20, 2024 17:135,05699,176,93616,178,28502,252,800
21Apr 20, 2024 17:145,05787,024,36116,181,57402,301,952
22Apr 20, 2024 17:145,06456,540,46716,204,74402,174,976
23Apr 20, 2024 17:135,11686,179,14016,369,83802,301,952
24Apr 20, 2024 17:145,13557,736,52216,432,24802,289,664