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 listJan 18, 2024 22:05Franek KortaFranek KortaScore: 4,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2024 22:054,69840,611,44914,032,0001,002,0002,445,312
2Jan 18, 2024 22:054,70231,003,33514,042,0001,003,0002,441,216
3Jan 18, 2024 22:054,70440,691,59913,046,0002,007,0002,445,312
4Jan 18, 2024 22:054,70633,244,17614,055,0001,003,0002,445,312
5Jan 18, 2024 22:054,70834,960,15214,061,0001,004,0002,269,184
6Jan 18, 2024 22:054,71332,238,18114,077,0001,005,0002,265,088
7Jan 18, 2024 22:054,71537,056,03614,082,0001,005,0002,441,216
8Jan 18, 2024 22:054,72540,194,72913,104,0002,016,0002,531,328
9Jan 18, 2024 22:054,74137,638,29114,161,0001,011,0002,514,944
10Jan 18, 2024 22:054,94754,951,46915,829,13302,199,552
11Jan 18, 2024 22:054,95183,656,10315,844,38102,195,456
12Jan 18, 2024 22:054,97274,764,01715,910,00002,203,648