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 listAug 20, 2022 23:15Franek KortaFranek KortaScore: 5,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 20, 2022 23:155,39339,443,78915,229,0002,030,0002,445,312
2Aug 20, 2022 23:155,40034,399,41217,280,00002,449,408
3Aug 20, 2022 23:155,40344,160,53416,274,0001,017,0002,531,328
4Aug 20, 2022 23:155,41037,440,20617,312,00002,445,312
5Aug 20, 2022 23:155,41141,136,69916,297,0001,018,0002,269,184
6Aug 20, 2022 23:155,42243,987,88716,330,0001,020,0002,269,184
7Aug 20, 2022 23:155,43840,822,49617,403,00002,531,328
8Aug 20, 2022 23:155,46144,209,71917,474,00002,269,184
9Aug 20, 2022 23:155,48843,794,78317,563,00002,445,312
10Aug 20, 2022 23:155,64280,787,70118,052,88502,207,744
11Aug 20, 2022 23:155,65588,894,33918,097,55102,195,456
12Aug 20, 2022 23:155,69493,790,48218,221,32402,207,744