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 listMay 23, 2021 10:15Andrey TsvetkovAndrey TsvetkovScore: 5,741Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2021 10:155,69841,233,32314,182,0004,052,0002,387,968
2May 23, 2021 10:155,70034,672,65015,200,0003,040,0002,334,720
3May 23, 2021 10:155,70541,163,44316,227,0002,028,0002,527,232
4May 23, 2021 10:155,70841,254,95415,220,0003,044,0002,527,232
5May 23, 2021 10:155,71734,785,08316,261,0002,032,0002,334,720
6May 23, 2021 10:155,72435,742,13416,281,0002,035,0002,334,720
7May 23, 2021 10:155,73841,457,06116,323,0002,040,0002,334,720
8May 23, 2021 10:155,74176,022,10118,371,03102,236,416
9May 23, 2021 10:155,74138,232,92316,329,0002,041,0002,531,328
10May 23, 2021 10:155,74243,898,33716,334,0002,041,0002,392,064
11May 23, 2021 10:155,798103,659,50118,552,85802,232,320
12May 23, 2021 10:155,81268,778,00818,597,51202,236,416
13May 23, 2021 10:155,86580,189,63118,767,81202,228,224
14May 23, 2021 10:155,91392,240,87818,921,83602,240,512
15May 23, 2021 10:155,98877,250,80719,162,95202,224,128