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 17, 2024 17:51Joad NacerJoad NacerScore: 5,071Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 17:515,04038,481,82114,112,0002,016,0002,289,664
2Apr 17, 2024 17:515,04833,347,28016,154,00002,289,664
3Apr 17, 2024 17:515,05132,117,04114,144,0002,020,0002,277,376
4Apr 17, 2024 17:515,05933,303,34414,167,0002,023,0002,289,664
5Apr 17, 2024 17:515,06139,028,43814,170,0002,024,0002,265,088
6Apr 17, 2024 17:515,06632,199,73814,184,0002,026,0002,289,664
7Apr 17, 2024 17:515,07133,030,32814,200,0002,028,0002,289,664
8Apr 17, 2024 17:515,08532,477,44714,239,0002,034,0002,277,376
9Apr 17, 2024 17:515,10736,314,04114,300,0002,042,0002,289,664
10Apr 17, 2024 17:515,23681,778,37216,754,99302,306,048
11Apr 17, 2024 17:515,25077,912,09316,799,10902,297,856
12Apr 17, 2024 17:515,27683,317,73916,884,72102,301,952