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 18, 2024 09:20Joad NacerJoad NacerScore: 5,008Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 09:204,95732,264,39414,872,000991,0002,285,568
2Apr 18, 2024 09:204,95843,930,19814,873,000991,0002,400,256
3Apr 18, 2024 09:204,96331,951,15414,891,000992,0002,289,664
4Apr 18, 2024 09:204,96535,107,50014,829,0001,059,0002,269,184
5Apr 18, 2024 09:204,96639,263,00314,898,000993,0002,273,280
6Apr 18, 2024 09:205,00636,136,78214,017,0002,002,0002,273,280
7Apr 18, 2024 09:205,00844,606,19714,023,0002,003,0002,289,664
8Apr 18, 2024 09:205,01236,473,67114,033,0002,004,0002,289,664
9Apr 18, 2024 09:205,02732,494,86214,076,0002,010,0002,363,392
10Apr 18, 2024 09:205,10977,944,41616,347,85102,301,952
11Apr 18, 2024 09:205,11583,442,73016,368,66302,301,952
12Apr 18, 2024 09:205,14186,281,93916,452,27902,174,976