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 listFeb 22, 2024 13:18Huy Duc LeHuy Duc LeScore: 4,963Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 13:184,95732,572,88515,863,00002,387,968
2Feb 22, 2024 13:184,95833,960,54914,874,000991,0002,281,472
3Feb 22, 2024 13:184,95851,258,02513,884,0001,983,0002,289,664
4Feb 22, 2024 13:184,95832,473,05914,876,000991,0002,523,136
5Feb 22, 2024 13:184,95937,413,50014,878,000991,0002,289,664
6Feb 22, 2024 13:184,95942,797,12413,887,0001,983,0002,269,184
7Feb 22, 2024 13:184,96337,359,40013,897,0001,985,0002,289,664
8Feb 22, 2024 13:184,98645,473,81513,962,0001,994,0002,289,664
9Feb 22, 2024 13:184,99847,805,12013,995,0001,999,0002,289,664
10Feb 22, 2024 13:185,12399,078,07416,392,55002,174,976
11Feb 22, 2024 13:185,13075,602,06416,415,93602,174,976
12Feb 22, 2024 13:185,17276,023,83516,549,77102,306,048