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 18, 2024 09:23Joad NacerJoad NacerScore: 5,013Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 09:234,97033,147,66115,903,00002,289,664
2Apr 18, 2024 09:234,97242,317,07915,911,00002,527,232
3Apr 18, 2024 09:234,98532,285,12813,959,0001,994,0002,269,184
4Apr 18, 2024 09:234,99330,865,12913,980,0001,997,0002,387,968
5Apr 18, 2024 09:235,01036,230,47114,029,0002,004,0002,289,664
6Apr 18, 2024 09:235,01136,133,63414,030,0002,004,0002,289,664
7Apr 18, 2024 09:235,01333,332,70115,040,0001,002,0002,379,776
8Apr 18, 2024 09:235,02139,003,28714,060,0002,008,0002,265,088
9Apr 18, 2024 09:235,02532,996,95815,075,0001,005,0002,265,088
10Apr 18, 2024 09:235,08178,256,23016,259,42802,179,072
11Apr 18, 2024 09:235,09394,693,73216,296,95802,297,856
12Apr 18, 2024 09:235,09670,705,67016,306,22102,179,072