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 19:07Joad NacerJoad NacerScore: 4,853Success
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 19:084,80144,462,78814,339,0001,024,0002,527,232
2Apr 17, 2024 19:084,80532,784,53113,325,0002,050,0002,273,280
3Apr 17, 2024 19:074,81332,982,04914,376,0001,026,0002,269,184
4Apr 17, 2024 19:074,81837,603,99215,416,00002,387,968
5Apr 17, 2024 19:084,82438,923,96014,407,0001,029,0002,289,664
6Apr 17, 2024 19:084,82442,667,96914,409,0001,029,0002,289,664
7Apr 17, 2024 19:074,82739,301,11814,417,0001,029,0002,289,664
8Apr 17, 2024 19:074,82937,308,82314,423,0001,030,0002,289,664
9Apr 17, 2024 19:084,83432,584,36114,438,0001,031,0002,269,184
10Apr 17, 2024 19:084,83932,795,46014,453,0001,032,0002,289,664
11Apr 17, 2024 19:074,84831,143,61114,480,0001,034,0002,289,664
12Apr 17, 2024 19:074,85230,546,90714,492,0001,035,0002,289,664
13Apr 17, 2024 19:074,85337,450,31014,495,0001,035,0002,367,488
14Apr 17, 2024 19:074,86034,912,59814,515,0001,036,0002,285,568
15Apr 17, 2024 19:084,86535,952,57915,568,00002,289,664
16Apr 17, 2024 19:074,87338,623,94015,592,00002,523,136
17Apr 17, 2024 19:084,87445,514,41914,559,0001,039,0002,289,664
18Apr 17, 2024 19:084,87832,680,40914,570,0001,040,0002,269,184
19Apr 17, 2024 19:075,05988,894,19616,188,91202,174,976
20Apr 17, 2024 19:075,064100,084,79716,205,79202,252,800
21Apr 17, 2024 19:075,07993,331,29016,253,72102,301,952
22Apr 17, 2024 19:085,08066,612,43716,256,51902,301,952
23Apr 17, 2024 19:085,08755,366,30516,279,26902,301,952
24Apr 17, 2024 19:085,10778,032,89216,340,90102,297,856