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 listJun 20, 2023 23:46Martin StensgårdMartin StensgårdScore: 5,316Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2023 23:435,26144,340,95416,834,0000393,216
2Jun 20, 2023 23:465,27331,120,57415,880,000992,000401,408
3Jun 20, 2023 23:435,28338,539,75915,912,000994,000405,504
4Jun 20, 2023 23:435,28440,765,22916,909,0000176,128
5Jun 20, 2023 23:435,28535,348,32215,919,000994,000438,272
6Jun 20, 2023 23:465,29240,650,09515,939,000996,000438,272
7Jun 20, 2023 23:465,29435,301,78615,946,000996,000438,272
8Jun 20, 2023 23:435,30036,112,11514,966,0001,995,000401,408
9Jun 20, 2023 23:435,30633,485,34915,981,000998,000401,408
10Jun 20, 2023 23:435,30948,163,27316,989,0000438,272
11Jun 20, 2023 23:435,31442,113,22216,004,0001,000,000401,408
12Jun 20, 2023 23:465,31432,641,29316,004,0001,000,0002,498,560
13Jun 20, 2023 23:435,31644,296,60016,011,0001,000,000397,312
14Jun 20, 2023 23:465,31745,481,14816,014,0001,000,000393,216
15Jun 20, 2023 23:465,33135,972,87216,055,0001,003,0002,498,560
16Jun 20, 2023 23:465,34332,521,20916,092,0001,005,0002,498,560
17Jun 20, 2023 23:465,34632,836,77316,102,0001,006,0002,273,280
18Jun 20, 2023 23:465,34640,098,52116,101,0001,006,0002,490,368
19Jun 20, 2023 23:465,56553,926,53917,809,57402,236,416
20Jun 20, 2023 23:465,57468,161,86317,837,79902,236,416
21Jun 20, 2023 23:435,58462,047,60117,868,58502,248,704
22Jun 20, 2023 23:435,64545,149,87618,062,43302,240,512
23Jun 20, 2023 23:435,68960,289,46318,203,93702,236,416
24Jun 20, 2023 23:465,75673,524,37818,420,45202,248,704