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 21:18Joad NacerJoad NacerScore: 4,842Success
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 21:184,81836,902,09615,416,00002,277,376
2Apr 17, 2024 21:184,82030,288,08414,395,0001,028,0002,396,160
3Apr 17, 2024 21:184,83331,104,57014,434,0001,031,0002,289,664
4Apr 17, 2024 21:184,83332,391,85514,435,0001,031,0002,289,664
5Apr 17, 2024 21:184,83732,740,83114,446,0001,031,0002,531,328
6Apr 17, 2024 21:184,84131,107,47414,458,0001,032,0002,387,968
7Apr 17, 2024 21:184,84235,671,59414,461,0001,032,0002,289,664
8Apr 17, 2024 21:184,84338,648,92714,464,0001,033,0002,269,184
9Apr 17, 2024 21:184,84829,118,95515,515,00002,281,472
10Apr 17, 2024 21:185,068114,170,01316,217,40902,174,976
11Apr 17, 2024 21:185,07961,702,46316,251,31702,297,856
12Apr 17, 2024 21:185,13099,449,56416,416,07802,179,072