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:08Joad NacerJoad NacerScore: 4,876Success
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:084,82731,587,06514,417,0001,029,0002,289,664
2Apr 17, 2024 21:084,82934,913,69514,422,0001,030,0002,289,664
3Apr 17, 2024 21:084,83836,066,57114,448,0001,032,0002,289,664
4Apr 17, 2024 21:084,84047,997,34214,456,0001,032,0002,527,232
5Apr 17, 2024 21:084,84433,928,06814,467,0001,033,0002,289,664
6Apr 17, 2024 21:084,85630,437,58514,503,0001,035,0002,383,872
7Apr 17, 2024 21:084,86040,986,68514,516,0001,036,0002,289,664
8Apr 17, 2024 21:084,86132,570,34115,554,00002,273,280
9Apr 17, 2024 21:084,86432,667,40514,529,0001,037,0002,289,664
10Apr 17, 2024 21:084,86738,314,79014,536,0001,038,0002,265,088
11Apr 17, 2024 21:084,87138,016,76514,548,0001,039,0002,273,280
12Apr 17, 2024 21:084,87432,695,48614,558,0001,039,0002,289,664
13Apr 17, 2024 21:084,87643,703,31614,562,0001,040,0002,289,664
14Apr 17, 2024 21:084,87837,088,09714,568,0001,040,0002,289,664
15Apr 17, 2024 21:084,88440,975,18314,588,0001,042,0002,289,664
16Apr 17, 2024 21:084,89331,219,34515,659,00002,273,280
17Apr 17, 2024 21:084,89936,089,87414,633,0001,045,0002,289,664
18Apr 17, 2024 21:084,90233,056,70315,687,00002,289,664
19Apr 17, 2024 21:085,05698,029,63516,180,78002,179,072
20Apr 17, 2024 21:085,06377,233,95816,200,63702,179,072
21Apr 17, 2024 21:085,07091,557,29616,223,00002,256,896
22Apr 17, 2024 21:085,07778,265,89816,245,83602,179,072
23Apr 17, 2024 21:085,08292,921,08216,262,32402,301,952
24Apr 17, 2024 21:085,09286,158,45016,292,86602,301,952