DateTimeDistanceAvg. Pace
2023-10-1105:58-06:245KM5'07"
2023-10-1306:05-06:305KM4'51"
2023-10-1406:19-06:425KM4'45"
2023-10-1506:44-07:5915KM4'57"
2023-10-1706:12-06:365KM4'50"
2023-10-1906:37-07:025KM4'52"
2023-10-2006:18-06:425KM4'54"
2023-10-2306:00-06:245KM4'52"
2023-10-2606:02-06:265KM4'46"
2023-10-3006:12-06:365KM4'48"
2023-11-305:28-05:535KM5'00"
2023-11-508:04-09:5021KM5'00"
2023-11-2305:54-06:165KM4'28"
2023-11-2405:43-06:065KM4'39"
2023-11-2606:18-07:0510KM4'44"
2023-12-606:22-06:445KM4'29"
2023-12-1007:03-07:5010KM4'44"
2023-12-1306:29-06:515KM4'25"
2024-1-106:16-07:0310KM4'43"
2024-1-609:06-10:1311.8KM5'27"
2024-1-2709:34-10:4011.74KM5'23"
2024-2-1216:39-17:045KM4'49"
2024-3-618:39-19:4711KM6'12"
2024-3-2309:02-10:1211.77KM5'48"
2024-4-205:47-06:125KM4'59"
2024-4-1605:48-06:125KM4'51"
2024-6-1905:38-06:035KM5'03"
2024-6-2505:49-06:145KM4'57"
2024-6-2705:51-06:155KM4'47"
2024-7-505:56-06:195KM4'42"
2024-7-905:50-06:145KM4'56"
2024-7-1005:44-06:105KM5'18"
2024-7-1505:57-06:215KM4'47"
2024-7-1705:49-06:145KM4'56"
2024-7-1905:42-06:065KM4'51"
2024-7-2205:58-06:235KM4'58"
2024-7-2505:58-06:215KM4'40"
2024-8-404:51-05:165KM4'55"
2024-8-605:45-06:095KM4'46"
2024-8-805:56-06:195KM4'46"
2024-8-1505:55-06:205KM4'56"
2024-8-2005:39-06:045KM4'46"
2024-8-2205:59-06:245KM4'56"
2024-8-2406:55-08:1211KM6'09"
2024-8-3121:25-21:525KM5'04"
2024-9-205:49-06:155KM4'53"
2024-9-905:47-06:125KM4'59"
2024-9-1305:24-05:495KM5'01"
2024-9-1405:44-06:125KM5'12"
2024-9-2605:53-06:185KM4'55"
2024-9-2705:35-06:005KM4'55"
2024-9-2905:55-06:195KM4'42"
2024-9-3005:12-05:365KM4'47"
2024-10-107:49-08:225KM6'10"
2024-10-1005:47-06:145KM5'22"
2024-10-1205:47-06:135KM5'03"

30

半马


40
全马

3.31 提车
4.08 验车
4.11 上牌
4.14 贴膜
4.19 蹭轮毂
4.22 刮车漆
5.25 罚款贰佰(首违警告)
7.23 补胎(60) 二补
7.27 罚款贰佰(视频教育免罚)
8.09 第一次上高速

日期距离总能耗平均能耗充电次数电费
03-31 05-31633km81kWh128Wh/km482.91
06-01 06-30599km72kWh120Wh/km454.43
07-01 07-31563km67kWh119Wh/km285.6
08-01 08-311024km121kWh118Wh/km487.26
09-01 09-30791km96kWh121Wh/km240.95
10-01 10-07 231.65

While there is life there is hope.
Put up or shut up.
one,two,three,go!
good good study,day day up
people mountain,people sea
funny mud pee
right your mother right
blue sky big old grandpa
No care three seven two ten one
Make my heart peng peng peng
What do you call a deer with no eye? (No eye deer)
I only know 25 letters of the alphabet (I don't know Y)
Why is “dark” is spelled with a “k” not a “c”? (Because you can’t c (see) in the dark)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

//1:3:5:7:8:20:28:40
//80080800D5
//213,0,8,8,128,0,0,0

//#define ZXIC

#ifdef ZXIC
#define BAND_WIDTH 8
#else
#define BAND_WIDTH 4
#endif

int str_reverse(char *str)
{   
    int i, j;
    char c;
    
    if (NULL == str || (j = strlen(str)) == 0)
        return -1;
    
    for (i = 0, j--; i < j; i++, j--) {
        c = str[i];
        str[i] = str[j];
        str[j] = c;
    }
    
    return 0;
}

void get_band_value(int band, int *offset, int *value)
{
    int temp;

    *offset = band / BAND_WIDTH;
    temp = band % BAND_WIDTH;
    if (temp == 0) {
        (*offset)--;
#ifdef ZXIC
        temp = BAND_WIDTH;
#else
        temp = 2 * BAND_WIDTH;
#endif
    }
#ifdef ZXIC
    *value = pow(2, temp - 1);
#else
    if (temp == BAND_WIDTH - 1) {
        temp = BAND_WIDTH;
    }
    *value = temp;
#endif
}

int get_frequency_bands(char *band, char *bandBuf)
{
    int bandValue, offset, value;
    char *ptr = NULL, temp[64] = {0};
#ifdef ZXIC
    int i, tempBuf[9] = {0};
#endif

    if (NULL == band || NULL == bandBuf || strlen(band) == 0)
        return -1;

    memcpy(temp, band, strlen(band));
    if ((ptr = strtok(temp, ":")) == NULL) {
        ptr = temp;
    }
    do {
        if ((bandValue = atoi(ptr)) <= 0)
            return -1;
        get_band_value(bandValue, &offset, &value);
#ifdef ZXIC
        tempBuf[offset] += value;
#else
        bandBuf[offset] += value;
        if (bandBuf[offset] > '9') {
            bandBuf[offset] += ('A' - '9' - 1);
        }
#endif
        ptr = strtok(NULL, ":");
    } while (ptr);
#ifdef ZXIC
    offset = 0;
    for (i = 0; i < BAND_WIDTH; i++) {
        offset += sprintf(&bandBuf[offset], "%d,", tempBuf[i]);
    }
    bandBuf[--offset] = '\0';
#else
    bandBuf[++offset] = '\0';
#endif

#ifdef ZXIC
    return 0;
#else
    return str_reverse(bandBuf);
#endif
}

int main(int argc, char *argv[])
{
    char band[32] = "00000000000000000000";

    get_frequency_bands("1:3:5:7:8:20:28:40", band);
    printf("band:%s\n", band);

    return 0;
}