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 listOct 6, 2023 07:05Pavel ZagrebinPavel ZagrebinScore: 5,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 07:055,31342,142,70916,003,0001,000,0002,392,064
2Oct 6, 2023 07:055,32443,714,60716,035,0001,002,0002,265,088
3Oct 6, 2023 07:055,32538,079,24915,036,0002,004,0002,265,088
4Oct 6, 2023 07:055,33842,304,15716,076,0001,004,0002,265,088
5Oct 6, 2023 07:055,34340,363,73415,087,0002,011,0002,396,160
6Oct 6, 2023 07:055,35438,420,92516,127,0001,007,0002,392,064
7Oct 6, 2023 07:055,35533,041,20215,120,0002,016,0002,265,088
8Oct 6, 2023 07:055,35834,875,53416,139,0001,008,0002,265,088
9Oct 6, 2023 07:055,36847,522,43016,168,0001,010,0002,396,160
10Oct 6, 2023 07:055,52475,017,18317,677,55602,277,376
11Oct 6, 2023 07:055,54272,689,46617,733,95002,281,472
12Oct 6, 2023 07:055,56585,934,64617,808,36102,289,664