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 listNov 29, 2024 17:18Joad NacerJoad NacerScore: 4,525Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2024 17:194,49433,893,50513,353,0001,027,0002,531,328
2Nov 29, 2024 17:194,50229,615,40314,407,00002,531,328
3Nov 29, 2024 17:194,50630,558,89413,389,0001,029,0002,531,328
4Nov 29, 2024 17:184,50731,271,50514,422,00002,424,832
5Nov 29, 2024 17:194,51329,985,84814,442,00002,433,024
6Nov 29, 2024 17:194,51430,075,71014,444,00002,514,944
7Nov 29, 2024 17:194,52527,085,45214,481,00002,531,328
8Nov 29, 2024 17:184,52732,666,27014,487,00002,273,280
9Nov 29, 2024 17:184,54332,276,37214,539,00002,539,520
10Nov 29, 2024 17:186,43039,478,66014,404,0006,173,0002,531,328
11Nov 29, 2024 17:186,45943,597,41717,569,0003,100,0002,465,792
12Nov 29, 2024 17:186,51736,506,22813,902,0006,951,0002,387,968