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 listFeb 27, 2024 20:58Ryan Chung Yi ShengRyan Chung Yi ShengScore: 5,496Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 27, 2024 20:585,43734,359,98616,376,0001,023,0002,408,448
2Feb 27, 2024 20:585,45940,202,03117,468,00002,281,472
3Feb 27, 2024 20:585,46042,634,97917,472,00002,281,472
4Feb 27, 2024 20:585,46144,995,58616,448,0001,028,0002,281,472
5Feb 27, 2024 20:585,47342,981,80316,484,0001,030,0002,281,472
6Feb 27, 2024 20:585,47537,136,53717,520,00002,281,472
7Feb 27, 2024 20:585,47835,737,34716,499,0001,031,0002,281,472
8Feb 27, 2024 20:585,48539,551,98617,551,00002,281,472
9Feb 27, 2024 20:585,48744,993,25717,559,00002,400,256
10Feb 27, 2024 20:585,48741,013,51217,558,00002,404,352
11Feb 27, 2024 20:585,48840,298,21417,561,00002,281,472
12Feb 27, 2024 20:585,49133,705,80317,570,00002,400,256
13Feb 27, 2024 20:585,49642,282,83516,552,0001,034,0002,404,352
14Feb 27, 2024 20:585,49943,803,15016,562,0001,035,0002,404,352
15Feb 27, 2024 20:585,50347,029,12617,611,00002,281,472
16Feb 27, 2024 20:585,50333,733,83517,608,00002,281,472
17Feb 27, 2024 20:585,52747,229,68816,646,0001,040,0002,400,256
18Feb 27, 2024 20:585,56989,151,65817,819,43102,297,856
19Feb 27, 2024 20:585,56935,675,26215,841,0001,980,0002,281,472
20Feb 27, 2024 20:585,58264,452,67217,860,94202,297,856
21Feb 27, 2024 20:585,58494,047,79117,869,68102,293,760
22Feb 27, 2024 20:585,58683,518,38617,873,84702,297,856
23Feb 27, 2024 20:585,60699,104,77617,938,19902,297,856
24Feb 27, 2024 20:585,62674,216,47518,002,47802,297,856