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 16, 2024 22:01Joad NacerJoad NacerScore: 5,777Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 22:015,72336,939,53216,280,0002,035,0002,527,232
2Apr 16, 2024 22:015,73335,574,19616,309,0002,038,0002,531,328
3Apr 16, 2024 22:015,74543,775,91917,363,0001,021,0002,289,664
4Apr 16, 2024 22:015,75338,002,96717,389,0001,022,0002,289,664
5Apr 16, 2024 22:015,76248,746,07616,391,0002,048,0002,289,664
6Apr 16, 2024 22:015,76345,657,54217,418,0001,024,0002,289,664
7Apr 16, 2024 22:015,77741,332,17716,432,0002,054,0002,269,184
8Apr 16, 2024 22:015,79241,102,67617,506,0001,029,0002,273,280
9Apr 16, 2024 22:015,79544,757,21018,544,00002,289,664
10Apr 16, 2024 22:015,96589,388,03819,087,86202,301,952
11Apr 16, 2024 22:015,96993,909,41519,099,80702,297,856
12Apr 16, 2024 22:015,98496,931,43819,150,14302,179,072