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 listJan 2, 2023 14:45Jack FrigaardJack FrigaardScore: 5,487Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 14:455,44334,534,86816,393,0001,024,0002,285,568
2Jan 2, 2023 14:455,46134,787,42115,420,0002,056,0002,285,568
3Jan 2, 2023 14:455,47034,804,38616,474,0001,029,0002,277,376
4Jan 2, 2023 14:455,48341,006,54616,513,0001,032,0002,285,568
5Jan 2, 2023 14:455,48538,060,38916,519,0001,032,0002,285,568
6Jan 2, 2023 14:455,48744,197,58016,525,0001,032,0002,285,568
7Jan 2, 2023 14:455,48748,167,44916,527,0001,032,0002,285,568
8Jan 2, 2023 14:455,48946,106,94016,532,0001,033,0002,285,568
9Jan 2, 2023 14:455,49342,659,67516,544,0001,034,0002,523,136
10Jan 2, 2023 14:455,64780,931,52218,069,07002,297,856
11Jan 2, 2023 14:455,67883,868,18418,169,45902,301,952
12Jan 2, 2023 14:455,68387,849,78718,184,60002,289,664