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 17, 2021 15:07Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 15:0800000Wrong answer: expected: 980433 got: 480721
2May 17, 2021 15:075,3992,999,797,02015,358,0001,919,0002,265,088
3May 17, 2021 15:075,4003,920,024,59916,321,000960,0002,260,992
4May 17, 2021 15:075,4072,029,569,89116,286,0001,017,0002,527,232
5May 17, 2021 15:075,412283,946,98616,301,0001,018,0002,260,992
6May 17, 2021 15:075,4223,673,516,07315,423,0001,927,0002,260,992
7May 17, 2021 15:075,4314,990,273,48917,379,00002,260,992
8May 17, 2021 15:075,4363,847,322,18616,371,0001,023,0002,265,088
9May 17, 2021 15:075,4432,895,947,83815,482,0001,935,0002,265,088
10May 17, 2021 15:075,4473,390,983,07016,462,000968,0002,523,136
11May 17, 2021 15:075,448812,274,87417,434,00002,269,184
12May 17, 2021 15:075,4494,004,061,41516,412,0001,025,0002,265,088
13May 17, 2021 15:075,4552,470,356,39215,518,0001,939,0002,269,184
14May 17, 2021 15:075,4613,944,385,76915,534,0001,941,0002,265,088
15May 17, 2021 15:075,4711,655,536,25616,535,000972,0002,527,232
16May 17, 2021 15:075,4753,664,191,93016,489,0001,030,0002,260,992
17May 17, 2021 15:075,4773,052,169,10216,553,000973,0002,527,232
18May 17, 2021 15:075,480570,251,12517,535,00002,383,872
19May 17, 2021 15:075,4833,465,945,51415,598,0001,949,0002,265,088
20May 17, 2021 15:075,5415,082,231,38917,731,61702,277,376
21May 17, 2021 15:075,5422,579,283,47617,733,66802,273,280
22May 17, 2021 15:075,5513,579,837,31317,763,96802,281,472
23May 17, 2021 15:075,5551,991,233,00017,775,01102,277,376
24May 17, 2021 15:075,5752,310,276,91617,839,08102,269,184
25May 17, 2021 15:075,662801,354,74318,117,47702,281,472